<template>
	<section class="content-box" v-loading="loading2" element-loading-text="正在加载中">
		<link href="../../static/css/printCss.css" rel="stylesheet" type="text/css" media="print">
		<div>
		<!--工具条-->
		<div v-if="Sholist">
			<el-col class="toolbar">
				<el-col :span="12">
					<h2>凭证</h2>
				</el-col>
				<el-col :span="24" style="text-align:right;">
					<el-form :inline="true" :model="filters">
						<!-- 查询项 -->
						<!--<el-form-item>
							<el-input v-model="filters.name" placeholder="请输入查询项"></el-input>
						</el-form-item>-->
						<!--<el-form-item>
							<el-button type="primary" class="el-icon-search" @click="refeDat"> 查询</el-button>
						</el-form-item>-->
						<el-form-item>
							<el-button type="success" class="el-icon-plus" @click="handleAdd"> 新增</el-button>
						</el-form-item>
						<el-form-item>
								<label for="file" class="label-file" style="margin-top: -10px;"><i class="icon iconfont icon-daoru"> 导入</i></label>
								<input name="file" id="file" type="file" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" @change="update" />
						</el-form-item>
						<el-form-item>
							<el-button type="info" @click="delMore" :disabled="sunbLis">
								<i class="icon iconfont icon-"  > 删除</i>
							</el-button>
						</el-form-item>
						<el-form-item>
							<el-button type="info" @click="submitForList" :disabled="sunbLis" >
								<i class="icon iconfont icon-"> 提交</i>
							</el-button>
						</el-form-item>
						<el-form-item>
							<el-button type="info" @click="UndoApprove"  :disabled="Review">
								<i class="icon iconfont icon-" > 弃审</i>
							</el-button>
						</el-form-item>
						<el-form-item>
							<el-button type="info" @click="Approve" :disabled='AuThstr'>
								<i class="icon iconfont icon-" > 审核</i>
							</el-button>
						</el-form-item>
						<el-form-item>
							<el-button type="info" @click="UndoPost" :disabled="Anti">
								<i class="icon iconfont icon-"> 反记账</i>
							</el-button>
						</el-form-item>
						<el-form-item>
							<el-button type="info" @click="WriteOff" :disabled="Anti">
								<i class="icon iconfont icon-" > 红字冲销</i>
							</el-button>
						</el-form-item>
						<el-form-item>
							<el-button type="info" @click="SetTemplate" :disabled="wml">
								<i class="icon iconfont icon-" >设为模版</i>
							</el-button>
						</el-form-item>
						<div style="float: right;margin-top: 9px;">
							<a class="wml" @click="dao2">导出</a>
							<!-- <a class="wml" :href="isdown" :download='isdown' @click="dao2">导出</a> -->
						</div>
					</el-form>
				</el-col>
			</el-col>
			<el-col class="toolbar">
				<el-col :span="24">
					<span>查询：</span>
					<el-button @click="refeDat"> {{PeriodRQ1}}—{{PeriodRQ2}}</el-button>
					<!--<el-select v-model="Period" @change="cxDta" placeholder="请选择">
						<el-option v-for="item in Period_Date" :key="item.ID" :label="item.Name" :value="item.Code">
						</el-option>
					</el-select>-->
					<!--<span>来源单据：</span>
					<el-select v-model='TypeLis' @change="laicha" placeholder="请选择">
						<el-option v-for="item in TypeLis_res" :key="item.sex" :label="item.value" :value="item.sex">
						</el-option>
					</el-select>-->

				</el-col>
			</el-col>
			<!--列表-->
			<el-table :data="tableData" max-height="700" @row-dblclick='abmo' highlight-current-row  style="width: 100%;" @selection-change="handleSelectionChange">
				<el-table-column type="selection" width="55" @row-click.stop="abmo">
				</el-table-column>
				<el-table-column prop="Voucher_DocNO" label="单号" sortable>
				</el-table-column>
				<el-table-column prop="Voucher_DocDate" label="单号日期" sortable :formatter="formatDate">
				</el-table-column>
				<el-table-column prop="Voucher_Abstracts" label="摘要" sortable show-overflow-tooltip>
				</el-table-column>
				<el-table-column prop="TotalJieMoney" label="借方金额" align="right" sortable>
				</el-table-column>
				<el-table-column prop="TotalDaiMoney" label="贷方金额" align="right" sortable>
				</el-table-column>
				<el-table-column prop="DocStatus" label="状态" sortable>
				</el-table-column>
				<el-table-column prop="SourceDocType" label="来源单据" sortable>
				</el-table-column>
				<el-table-column prop="Voucher_AccountPeriod" label="期间" sortable>
				</el-table-column>
				
				<el-table-column label="操作" min-width="100" header-align="center" >
					<template slot-scope="scope">
						<el-button size="small" :disabled="chexiao" v-if="scope.row.DocStatus != '已关闭' && scope.row.SourceDocType != '总账凭证'"  @click="fuyu(scope.$index, scope.row)"  class="icon iconfont icon-ziyuan"></el-button>
						<el-button size="small" v-if="scope.row.DocStatus==='新建'" @row-click.stop="abmo" @click="PZEdit(scope.$index, scope.row)" >编辑</el-button>
						<el-button size="small" @row-click.stop="abmo" @click="fuzhi(scope.$index, scope.row)" >复制</el-button>
						<el-button size="small" v-if="scope.row.SourceDocType != '总账凭证'"  @click="yuandan(scope.$index, scope.row)">原单</el-button>
						<el-button type="danger" v-if="scope.row.DocStatus==='新建'" @row-click.stop="abmo" @click="PzCan(scope.$index, scope.row)" size="small">删除</el-button>
					</template>
				</el-table-column>
			</el-table>
		</div>
		<!--新增界面-->
		<div v-if="SholissAdd">

			<!-- 重布局 -->
			<!-- 导航条 -->
			<div class="flex-top">
				<div>
					<i class="el-icon-arrow-left back" @click="ToBackoth"></i>
					<span style="font-size:20px;vertical-align:middle;margin:0 10px;">
						凭证（新增） </span>
					<small>
					</small>
				</div>
				<!-- 右侧 -->
				<div class="flex">
					<span class="wrapper">
						<el-button type="info" @click="kemuAdd">
							<i class=""></i> 新增科目
						</el-button>
						<el-button type="info" @click="handleAdd">
							<i class=""></i> 新建
						</el-button>
						<!--<el-button type="info">
							<i class=""></i> 打印
						</el-button>
                        <el-button type="info">
							<i class=""></i> 流程
						</el-button>
						<el-button type="info" >
							<i class=""></i> 附件
						</el-button>-->
              			<el-button type="info" @click="Referadd"> 
							<i class=""></i> 保存
						</el-button>
						<el-button type="info" @click="SaveAll">
							<i class="el-icon-circle-check"></i> 提交
						</el-button>
					</span>
				</div>
			</div>
			<!--中部 -->
			<main class="main">
				<div class="main-left">
					<div>
						<h3>单号</h3>
						<strong>{{BjoddNuber}}</strong>
					</div>
					<div>
						<h3>制单日期</h3>
						<div class="flex">
							<el-date-picker type="date"   v-model="TraferTime" placeholder="选择日期" :picker-options="pickerOptions0" @change="ZdData">
							</el-date-picker>
						</div>
					</div>
					<div style="margin-bottom:25px;">
						<h3>申请人</h3>
						<strong>
                        {{mingzi}}
                        </strong>&#x3000;
					</div>
				</div>
				<!-- <div class="main-right" style="height: 120%"> 陈冠成-->
					<div class="main-right" style="height: 100%;box-sizing:border-box;">
					<div class="left-form">
						<el-row>
							<el-col :span="7">
								<span>来源单号</span>
								<el-select v-model="addForm.voucher" :disabled="true" placeholder="总账凭证" style="margin-left:6%;width: 56%;">
									<el-option label="区域一" value="shanghai"></el-option>
									<el-option label="区域二" value="beijing"></el-option>
								</el-select>
							</el-col>
							<el-col :span="17">
								<span>现金流量</span>
								<el-select v-model="LowItData" placeholder="请选择" style="margin-left:3%;width: 23%;">
									<el-option v-for="item in lowItemRes" :key="item.ID" :label="item.CashFlowItem_Name
" :value="item.CashFlowItem_Code">
									</el-option>
								</el-select>
							</el-col>
							<el-col :span="7">
								<span>来源单据</span>
								<el-select v-model='TypeLis' :disabled="true" placeholder="请选择" style="margin-left:6%;width: 56%;">
									<el-option v-for="item in TypeLis_res" :key="item.sex" :label="item.value" :value="item.sex">
									</el-option>
								</el-select>
							</el-col>
							<el-col :span="17">
								<span>会计期间</span>
								<el-input v-model="deliveryData" :disabled="true" style="width:200px">
								</el-input>
							</el-col>
							<el-col :span="24">
								<span style="vertical-align:top;line-height:10px;">业务描述&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
								<textarea cols="111" rows="6" v-model="ChiefAbsTract" style="width: 50%;height: 20%;" ></textarea>

							</el-col>
						</el-row>
					</div>
				</div>
			</main>
			<!-- 布局结束 -->

			<div class="budget" style="width:100%">
				<div style="padding:10px;">
					<span>
						<i class="icon iconfont icon-iconfontcolor52"></i> 凭证明细</span>&#x3000;
					<small @click="addlist">添加行</small>
				</div>
				<table class="HideTable" border="1">
					<tr>
						<th id="th1">NO</th>
						<th id="th2">摘要</th>
						<th id="th3">会计科目</th>
						<th id="th4">辅助核算项目</th>
						<th id="th5">借方金额</th>
						<th id="th6">贷方金额</th>
						<th id="th7">操作</th>
					</tr>

					<tr v-for="(i,index) in NowList" :key="index">
						<!-- 遍历初始化的NowList添加行空数据 -->
						<!--行号  -->
						<td>{{index+1}}</td>
						<!-- v-model => 摘要 -->
						<td>
							<el-input v-model="i.AbsTract" @change="AddAbsTract(index,AbsTract)" placeholder="请输入内容" show-overflow-tooltip></el-input>
						</td>
						<!-- 会计科目 -->
						<td>
							<!--<el-input v-model="i.TteName" placeholder="请输入内容"></el-input>-->
							<el-select v-model="i.VoucherLine_AccountItem" filterable placeholder="请选择科目"  @change="fzcx(index)" style="width: 100%;">
								<el-option v-for="item in Listres" :key="item.value" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
						</td>
						<td >
							<el-select v-model="i.fzbumen" filterable  placeholder="部门" v-if="i.isCopemer" style="width: 32%;">
								<el-option v-for="item in i.fffffB" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzCustomer" filterable  placeholder="客户" v-if="i.isCusomer" style="width: 32%;">
								<el-option v-for="item in i.fffffK" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzProduct" filterable  placeholder="产品" v-if="i.isProduct" style="width: 32%;">
								<el-option v-for="item in i.fffffC" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzCompany" filterable  placeholder="公司" v-if="i.isCompany" style="width: 32%;">
								<el-option v-for="item in i.fffffG" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzdaitan" filterable  placeholder="待摊" v-if="i.isdaitan" style="width: 32%;">
								<el-option v-for="item in i.fffffD" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzSupplier" filterable  placeholder="供应商" v-if="i.isSupplier" style="width: 32%;">
								<el-option v-for="item in i.fffffGYS" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzyajin" filterable  placeholder="押金" v-if="i.isyajin" style="width: 32%;">
								<el-option v-for="item in i.fffffYJ" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzEmployee" filterable  placeholder="员工" v-if="i.isEmployee" style="width: 32%;">
								<el-option v-for="item in i.fffffY" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
												
						</td>
						<td class="inTd" >
							<!-- 借方金额  index,i.YBL_Department -->
							<el-input v-model="i.VoucherLine_JieMoney" placeholder="请输入金额" @change="sumMation(index,i.VoucherLine_JieMoney)" @blur="fuyuW(i,'VoucherLine_JieMoney')"></el-input>
							<!-- <el-input v-model="i.VoucherLine_JieMoney"  placeholder="请输入金额" @change="sumMation(index,i.VoucherLine_JieMoney)" @blur="fuyuW"></el-input> //陈冠成 -->
						</td> 
						<td>
							<!-- 贷方金额    -->
							<el-input v-model="i.VoucherLine_DaiMoney"  placeholder="请输入金额" @change="credit(index,i.VoucherLine_DaiMoney)" @blur="fuyuW(i,'VoucherLine_DaiMoney')"></el-input>
							<!-- <el-input v-model="i.VoucherLine_DaiMoney"  placeholder="请输入金额" @change="credit(index,i.VoucherLine_DaiMoney)" @blur="fuyuW"></el-input> //陈冠成 -->
						</td>
						<td>
							<!--操作  -->
							<el-button size="small" @click="handleDelete(index)" type="danger" class="dele">删除</el-button>
						</td>
					</tr>
					<tr>
						<td></td>
						<td></td>
						<td></td>
						<td>合计</td>
						<!-- <td>{{sunang}}</td>
						<td>{{sunbng}}</td> -->
						<td>{{jiefang}}</td>
						<td>{{daifang}}</td>
					</tr>
				</table>
			</div>
		</div>
		
		<!--编辑页面-->
		<div v-if="SholissAdd1">

			<!-- 重布局 -->
			<!-- 导航条 -->
			<div class="flex-top">
				<div>
					<i class="el-icon-arrow-left back" @click="ToBackoth1"></i>
					<span style="font-size:20px;vertical-align:middle;margin:0 10px;">
						凭证（编辑） </span>
					<small>
					</small>
				</div>
				<!-- 右侧 -->
				<div class="flex">
					<span class="wrapper">
						<el-button type="info" @click="handleAdd">
							<i class=""></i> 新建
						</el-button>
						<!--<el-button type="info">
							<i class=""></i> 打印
						</el-button>
                        <el-button type="info">
							<i class=""></i> 流程
						</el-button>
						<el-button type="info" >
							<i class=""></i> 附件
						</el-button>-->
						<el-button type="info" @click="EntitySave"> 
							<i class=""></i> 保存
						</el-button>
						<el-button type="info" @click="Submit">
							<i class="el-icon-circle-check"></i> 提交
						</el-button>
					</span>
				</div>
			</div>
			<!--中部 -->
			<main class="main">
				<div class="main-left">
					<div>
						<h3>单号</h3>
						<strong>{{BjoddNuber}}</strong>
					</div>
					<div>
						<h3>制单日期</h3>
						<div class="flex">
							<el-date-picker type="date"  v-model="TraferTime" placeholder="选择日期" :picker-options="pickerOptions0" @change="ZdData">
							</el-date-picker>
						</div>
					</div>
					<div style="margin-bottom:25px;">
						<h3>申请人</h3>
						<strong>
                        {{mingzi}}
                        </strong>&#x3000;
					</div>
				</div>
				<!-- <div class="main-right" style="height: 120%"> 陈冠成-->
					<div class="main-right" style="height: 100%;box-sizing:border-box;">
					<div class="left-form">
						<el-row>
							<el-col :span="7">
								<span>来源单号</span>
								<el-select v-model="addForm.voucher" :disabled="true" placeholder="总账凭证" style="margin-left:6%;width: 56%;">
									<el-option label="区域一" value="shanghai"></el-option>
									<el-option label="区域二" value="beijing"></el-option>
								</el-select>
							</el-col>
							<el-col :span="17">
								<span>现金流量</span>
								<el-select v-model="LowItData" placeholder="请选择" style="margin-left:3%;width: 23%;">
									<el-option v-for="item in lowItemRes" :key="item.ID" :label="item.CashFlowItem_Name
" :value="item.CashFlowItem_Code">
									</el-option>
								</el-select>
							</el-col>
							<el-col :span="7">
								<span>来源单据</span>
								<el-select v-model="TypeLis" :disabled="true" placeholder="请选择" style="margin-left:6%;width: 56%;">
									<el-option v-for="item in TypeLis_res" :key="item.sex" :label="item.value" :value="item.sex">
									</el-option>
								</el-select>
							</el-col>
							<el-col :span="17">
								<span>会计期间</span>
								<el-input v-model="deliveryData" :disabled="true" style="width:200px">
								</el-input>
							</el-col>
							<el-col :span="24">
								<span style="vertical-align:top;line-height:10px;">业务描述&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
								<textarea cols="111" rows="6" v-model="ChiefAbsTract" style="width: 50%;height: 20%;"></textarea>

							</el-col>
						</el-row>
					</div>
				</div>
			</main>
			<!-- 布局结束 -->

			<div class="budget" style="width:100%">
				<div style="padding:10px;">
					<span>
						<i class="icon iconfont icon-iconfontcolor52"></i> 凭证明细</span>&#x3000;
					<small @click="addlist">添加行</small>
				</div>
				<table class="HideTable" border="1">
					<tr>
						<th id="th1">NO</th>
						<th id="th2">摘要</th>
						<th id="th3">会计科目</th>
						<th id="th4">辅助核算项目</th>
						<th id="th5">借方金额</th>
						<th id="th6">贷方金额</th>
						<th id="th7">操作</th>
					</tr>

					<tr v-for="(i,index) in NowList" :key="index">
						<!-- 遍历初始化的NowList添加行空数据 -->
						<!--行号  -->
						<td>{{index+1}}</td>
						<!-- v-model => 摘要 -->
						<td>
							<el-input v-model="i.AbsTract" @change="AddAbsTract(index,AbsTract)" placeholder="请输入内容" show-overflow-tooltip></el-input>
						</td>
						<!-- 会计科目 -->
						<td>
							<!--<el-input v-model="i.TteName" placeholder="请输入内容"></el-input>-->
							<el-select v-model="i.VoucherLine_AccountItem" filterable placeholder="请选择科目"  @change="fzcx(index)" style="width: 100%;">
								<el-option v-for="item in Listres" :key="item.value" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
						</td>
						<td >
							<el-select v-model="i.fzbumen" filterable  placeholder="新增部门" v-if="i.isCopemer" style="width: 32%;">
								<el-option v-for="item in i.fffffB" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzCustomer" filterable  placeholder="新增客户" v-if="i.isCusomer" style="width: 32%;">
								<el-option v-for="item in i.fffffK" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzProduct" filterable  placeholder="新增产品" v-if="i.isProduct" style="width: 32%;">
								<el-option v-for="item in i.fffffC" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzCompany" filterable  placeholder="新增公司" v-if="i.isCompany" style="width: 32%;">
								<el-option v-for="item in i.fffffG" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzdaitan" filterable  placeholder="新增待摊" v-if="i.isdaitan" style="width: 32%;">
								<el-option v-for="item in i.fffffD" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzSupplier" filterable  placeholder="新增供应商" v-if="i.isSupplier" style="width: 32%;">
								<el-option v-for="item in i.fffffGYS" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzyajin" filterable  placeholder="新增押金" v-if="i.isyajin" style="width: 32%;">
								<el-option v-for="item in i.fffffYJ" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>
							<el-select v-model="i.fzEmployee" filterable  placeholder="新增员工" v-if="i.isEmployee" style="width: 32%;">
								<el-option v-for="item in i.fffffY" :key="index" :label="item.label" :value="item.value">
								</el-option>
							</el-select>

						</td>
						<td class="inTd" >
							<!-- 借方金额  index,i.YBL_Department -->
							<!-- <el-input v-model="i.VoucherLine_JieMoney" placeholder="请输入金额" @change="sumMation(index,i.VoucherLine_JieMoney)" @blur="fuyuW"></el-input> -->
							<el-input v-model="i.VoucherLine_JieMoney" placeholder="请输入金额" @change="sumMation(index,i.VoucherLine_JieMoney)" @blur="fuyuW(i,'VoucherLine_JieMoney')"/>
						</td>
						<td >
							<!-- 贷方金额    -->
							<!-- <el-input v-model="i.VoucherLine_DaiMoney" placeholder="请输入金额" @change="credit(index,i.VoucherLine_DaiMoney)" @blur="fuyuW"></el-input> -->
							<el-input v-model="i.VoucherLine_DaiMoney" placeholder="请输入金额" @change="credit(index,i.VoucherLine_DaiMoney)" @blur="fuyuW(i,'VoucherLine_DaiMoney')"/>
						</td>
						<td>
							<!--操作  -->
							<el-button size="small" @click="handleDelete(index)" type="danger" class="dele">删除</el-button>
						</td>
					</tr>
					<tr>
						<td></td>
						<td></td>
						<td></td>
						<td>合计</td>
						<!-- <td>{{sunang}}</td>
						<td>{{sunbng}}</td> -->
						<td>{{jiefang}}</td>
						<td>{{daifang}}</td>
					</tr>
				</table>
			</div>
		</div>
		
			
		<!--总账凭证查看-->
		<el-dialog :visible.sync="referVisible" :modal-append-to-body="false" >
			<span id="linzi">
				总账凭证
			</span>
			<!--model：false 避免出现模态框-->
			<el-col class="toolbar" style="margin-bottom:20px;margin-top: 40px;">
				<el-row type="flex" class="row-bg" justify="space-around">
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">凭证编号：</span>
					<el-input v-model="pzDocNO" :disabled="true" style="width:150px;float: left;"></el-input>
				  </el-col>
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">制单日期：</span>
					<el-input v-model="pzDocDate" :disabled="true" style="width:150px;float: left;"></el-input>
				  </el-col>
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">附件：</span>
					<el-input v-model="value8" :disabled="true" style="width:150px;float: left;"></el-input>
				  </el-col>
				</el-row>
			</el-col>
			<el-table :data="SearList" style="width: 100%">
				<!--查询列表 -->
				<el-table-column type="index" label="序号" width="66"></el-table-column>
				<el-table-column property="VoucherLine_AccountItemName" label="会计科目" header-align="center" width="250px"></el-table-column>
				<el-table-column property="VoucherLine_AssistItemName" label="辅助核算" header-align="center" width="350px" show-overflow-tooltip></el-table-column>
				<el-table-column property="VoucherLine_JieMoney" label="借方" :formatter="dealF"  header-align="center" align="center"></el-table-column>
				<el-table-column property="VoucherLine_DaiMoney" label="贷方" :formatter="dealY"  header-align="center" align="center"></el-table-column>
			</el-table>
			<div id="wang">
				<!--<div style="width:19%;height: 40px;float: left;"></div>-->
				<div style="width:74%;height: 40px;float: left;"><p>合计</p></div>
				<!--<div style="width:19%;height: 40px;float: left;"></div>-->
				<div style="width:13%;height: 40px;float: left;"><p>{{jiefangheji}}</p></div>
				<div style="width:13%;height: 40px;float: left;"><p>{{daifangheji}}</p></div>
			</div>
			<div id="fu">
				<div style="width:15%;height: 66px;float: left;"><p>摘要</p></div>
				<textarea style="width:83%;height: 66px;float: left;" cols="111" rows="6" v-model="pzAbstracts"></textarea>
			</div>
			
			<el-col class="EmPennAge" style="margin-bottom:10px;margin-left: 27px;">
				<el-row :gutter="20">
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">单据类型：</span>
					<el-input v-model="laiyuandan" :disabled="true" style="width:120px"></el-input>
				  </el-col>
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">现金流类型：</span>
					<el-input v-model="xianjinliu" :disabled="true" style="width:120px"></el-input>
				  </el-col>
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">制单：</span>
					<el-input v-model="pzStrCreateBy" :disabled="true" style="width:120px"></el-input>
				  </el-col>
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">记账：</span>
					<el-input v-model="yulanjizhang" :disabled="true" style="width:120px"></el-input>
				  </el-col>
				</el-row>
				<el-row :gutter="20" style="margin-top: 10px;margin-bottom: 10px;">
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">来源单号：</span>
					<el-input v-model="laiyuandanhao" :disabled="true" style="width:120px"></el-input>
				  </el-col>
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：</span>
					<el-input v-model="yulanzhuangtai" :disabled="true" style="width:120px"></el-input>
				  </el-col>
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">出纳：</span>
					<el-input v-model="yulanchuna" :disabled="true" style="width:120px"></el-input>
				  </el-col>
				  <el-col :span="6">
				  	<span style="float: left;line-height: 36px;">审核：</span>
					<el-input v-model="yulanshenhe" :disabled="true" style="width:120px"></el-input>
				  </el-col>
				</el-row>
			</el-col>
		</el-dialog>
		<!-- 撤销页面 -->
        <el-dialog title="凭证撤销" :visible.sync="dialogFormVisibleA" size="tiny" :modal-append-to-body="false">
		  <div>
		  	<el-checkbox v-model="checkedA" @change="changeAAA(checkedA)"  disabled>出纳工作台</el-checkbox>
		  	<el-checkbox v-model="checkedB" @change="changeBBB(checkedB)"  :disabled = "xiugai">业务修改</el-checkbox>
		  	<el-checkbox v-model="checkedC" @change="changeCCC(checkedC)"  >业务新建</el-checkbox>
			</br>
			<el-input type="textarea" :rows="2" placeholder="请输入撤销建议" v-model="textarea">
			</el-input>
		  </div>
		  
		  <div slot="footer" class="dialog-footer">
		    <el-button @click="dialogFormVisibleA = false">取 消</el-button>
		    <el-button type="primary" @click="ProfitQueding()" >确 定</el-button>
		  </div>
		</el-dialog>
		<!-- 撤销页面结束-->
		
		<!--
				报销单打印窗口
        -->
        <el-dialog :visible.sync="dialogPrintVisibleB" :modal-append-to-body="false">
          <div class="printBox cover">
            <el-button size="small" class="center" @click.native="printPdf()">&#12288;打印&#12288;</el-button>
            <div id="form1">
              <table width="100%" border="0" v-loading="PrintLoading" element-loading-text="正在加载中">
              <caption>
                <h3 id="Doc">{{printsData.ER_Tite || ''}}</h3>
              </caption>
              <thead>
                <tr>
                  <td style="padding:15px 10px;line-height:30px;">
                    <div id="CompanyName" style="float:left">{{printsData.CompanyName || ''}}</div>
                    <div id="Current" style="float:right">打印日期：{{printsData.Current || ''}}</div>
                  </td>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>
                    <div id="div" class="table-c">
                      <table cellpadding="3" width="100%" class="ListTable">
                        <tbody>
                          <tr>
                            <td class="tbTitle">单号</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.DocNo : '' }}</td>
                            <td class="tbTitle">申请人</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.RequestEmpName : ''}}</td>
                            <td class="tbTitle">申请部门</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.RequestDeptName : ''}}</td>
                          </tr>
                          <tr>
                            <td class="tbTitle">单据日期</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.DocDateStr : ''}}</td>
                            <td class="tbTitle">业务类型</td>
                            <td class="Tabletd">{{printsData.entity.BusinessType==2?`对私`:`对公`}}</td>
                            <td class="tbTitle">供应商</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.SupplierName : ''}}</td>
                          </tr>
                          <tr>
                            <td class="tbTitle">申请金额</td>
                            <td class="Tabletd">{{printsData.entity && printsData.entity.TotalRequestMoney ? printsData.entity.TotalRequestMoney.toFixed(2) : '0.00'}}</td>
                            <td class="tbTitle">本次付款金额</td>
                            <td class="Tabletd">{{printsData.entity && printsData.entity.TotalLeaveMoney ? printsData.entity.TotalLeaveMoney.toFixed(2) : '0.00'}}</td>
                            <td class="tbTitle">开户银行</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.RcvBank : ''}}</td>
                          </tr>
                          <tr>
                            <td class="tbTitle">银行账号</td>
                            <td class="Tabletd">
                              {{printsData.entity ? printsData.entity.RcvBankAccount:''}}
                            </td>
                            <td class="tbTitle">业务描述</td>
                            <td colspan="3" class="Tabletd">
                              {{printsData.entity ? printsData.entity.Title : ''}}
                            </td>                 
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr v-if="printsData.entity && printsData.entity.ExpenseBorrowLineSet && printsData.entity.ExpenseBorrowLineSet.length>0">
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr v-if="printsData.entity && printsData.entity.ExpenseBorrowLineSet && printsData.entity.ExpenseBorrowLineSet.length>0">                   
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>借款单号</td>
                            <td>借款金额</td>
                            <td>未核销金额</td>
                            <td>本次核销金额</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.entity.ExpenseBorrowLineSet" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.BorrowDoc ? p.BorrowDoc : ''}}</td>
                            <td>{{p && p.TotalBorrowMoney ? p.TotalBorrowMoney.toFixed(2) : ''}}</td>
                            <td>{{p && p.CurrentLeaveMoney ? p.CurrentLeaveMoney.toFixed(2) :''}}</td>
                            <td>{{p && p.WriteOffMoney ? p.WriteOffMoney.toFixed(2) :''}}</td>
                          </tr>
                          <tr>
                            <td colspan="4">合计</td>
                            <td>{{printsData.entity && printsData.entity.ExpenseBorrowLineSetMoney ? printsData.entity.ExpenseBorrowLineSetMoney.toFixed(2):'0.00'}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>预算树</td>
                            <td>预算组织</td>
                            <td>预算科目</td>
                            <td>借款金额</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.entity.ExpenseLineSet" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.YBDEntity.YearBudgetName ? p.YBDEntity.YearBudgetName : ''}}</td>
                            <td>{{p.YBDEntity.DepartmentName ? p.YBDEntity.DepartmentName : ''}}</td>
                            <td>{{p.YBDEntity.BudgetItemName ? p.YBDEntity.BudgetItemName : ''}}</td>
                            <td>{{p && p.RequestMoney ? p.RequestMoney.toFixed(2) : ''}}</td>
                          </tr>
                          <tr>
                            <td colspan="4">合计</td>
                            <td>{{printsData.entity && printsData.entity.ExpenseLineSetMoney ? printsData.entity.ExpenseLineSetMoney.toFixed(2):'0.00'}}</td>                    
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr v-if="printsData.entity && printsData.entity.ExpenseTradeLineSet && printsData.entity.ExpenseTradeLineSet.length>0"><td style="line-height:30px;">&nbsp;</td></tr>
                <tr v-if="printsData.entity && printsData.entity.ExpenseTradeLineSet && printsData.entity.ExpenseTradeLineSet.length>0">     
                 <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>挂账科目</td>
                            <td>往来单位</td>
                            <td>挂账金额</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.entity.ExpenseTradeLineSet" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.AccountItemName ? p.AccountItemName : ''}}</td>
                            <td>{{p.AssistItemName ? p.AssistItemName : ''}}</td>
                            <td>{{p && p.TradeMoney ? p.TradeMoney.toFixed(2) : ''}}</td>
                          </tr>
                          <tr>
                            <td colspan="3">合计</td>
                            <td>{{printsData.entity && printsData.entity.ExpenseTradeLineSetMoney ? printsData.entity.ExpenseTradeLineSetMoney.toFixed(2):'0.00'}}</td>          
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>处理人</td>
                            <td>处理结果</td>
                            <td>备注</td>
                            <td>处理日期</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.Chart" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.PlanUser ? p.PlanUser : ''}}</td>
                            <td>{{p.StepName ? p.StepName : ''}}</td>
                            <td>{{p.OpRemark ? p.OpRemark : ''}}</td>
                            <td>{{p.OpDate ? p.OpDate : ''}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <!--审批流-->
                  <td>
                    <div id="Chart" class="table-c"></div>
                  </td>
                </tr>
              </tbody>
            </table>
            </div>
          </div>
        </el-dialog>
        <!--
				借款单打印窗口
			-->
			<el-dialog :visible.sync="dialogPrintVisibleJ" :modal-append-to-body="false">
				<div class="printBox cover">
					<el-button size="small" class="center" @click.native="printPdf2()">&#12288;打印&#12288;</el-button>
					<div id="form2">
			            <table width="100%" border="0" v-loading="PrintLoading" element-loading-text="正在加载中">
			              <caption>
			                <h3 id="Doc">{{printsData.ER_Tite || ''}}</h3>
			              </caption>
			              <thead>
			                <tr>
			                  <td style="padding:15px 10px;line-height:30px;">
			                    <div id="CompanyName" style="float:left">{{printsData.CompanyName || ''}}</div>
			                    <div id="Current" style="float:right">打印日期：{{printsData.Current || ''}}</div>
			                  </td>
			                </tr>
			              </thead>
			              <tbody>
			                <tr>
			                  <td>
			                    <div id="div" class="table-c">
			                      <table cellpadding="3" width="100%" class="ListTable">
			                        <tbody>
			                          <tr>
			                            <td class="tbTitle">单号</td>
			                            <td class="Tabletd">{{printsData.entity ? printsData.entity.DocNo : '' }}</td>
			                            <td class="tbTitle">申请人</td>
			                            <td class="Tabletd">{{printsData.entity ? printsData.entity.CreateByName : ''}}</td>
			                            <td class="tbTitle">申请部门</td>
			                            <td class="Tabletd">{{printsData.entity ? printsData.entity.RequestDeptName : ''}}</td>
			                          </tr>
			                          <tr>
			                            <td class="tbTitle">单据日期</td>
			                            <td class="Tabletd">{{printsData.entity ? printsData.entity.DocDateStr : ''}}</td>
			                            <td class="tbTitle">业务类型</td>
			                            <td class="Tabletd">{{printsData.entity.BusinessType==2?`对私`:`对公`}}</td>
			                            <td class="tbTitle">供应商</td>
			                            <td class="Tabletd">{{printsData.entity ? printsData.entity.SupplierName : ''}}</td>
			                          </tr>
			                          <tr>
			                            <td class="tbTitle">借款金额</td>
			                            <td class="Tabletd">{{printsData.entity && printsData.entity.TotalBorrowMoney ? printsData.entity.TotalBorrowMoney.toFixed(2) : '0.00'}}</td>
			                            <td class="tbTitle">开户银行</td>
			                            <td class="Tabletd">{{printsData.entity ? printsData.entity.RcvBank : ''}}</td>
			                            <td class="tbTitle">银行账号</td>
			                            <td class="Tabletd">{{printsData.entity ? printsData.entity.RcvBankAccount : ''}}</td>
			                          </tr>
			                          <tr>
			                            <td class="tbTitle">业务描述</td>
			                            <td colspan="5" class="Tabletd">
			                              {{printsData.entity ? printsData.entity.Title : ''}}
			                            </td>
			                          </tr>
			                        </tbody>
			                      </table>
			                    </div>
			                  </td>
			                </tr>
			                <tr>
			                  <td style="line-height:30px;">&nbsp;</td>
			                </tr>
			                <tr>
			                  <td>
			                    <div id="Line" class="table-c">
			                      <table width="100%" class="ListTable">
			                        <thead>
			                          <tr>
			                            <td width="5%">NO</td>
			                            <td>预算树</td>
			                            <td>预算组织</td>
			                            <td>预算科目</td>
			                            <td>借款金额</td>
			                          </tr>
			                        </thead>
			                        <tbody>
			                          <tr v-for="(p,index) in printsData.entity.BorrowLineSet" :key="index">
			                            <td>{{index+1}}</td>
			                            <td>{{p.YBDEntity.YearBudgetName ? p.YBDEntity.YearBudgetName : ''}}</td>
			                            <td>{{p.YBDEntity.DepartmentName ? p.YBDEntity.DepartmentName : ''}}</td>
			                            <td>{{p.YBDEntity.BudgetItemName ? p.YBDEntity.BudgetItemName : ''}}</td>
			                            <td>{{p && p.BorrowMoney ? p.BorrowMoney.toFixed(2) : ''}}</td>
			                          </tr>
			                          <tr>
			                            <td colspan="4">合计</td>
			                            <td>{{printsData.entity && printsData.entity.BorrowLineSetMoney ? printsData.entity.BorrowLineSetMoney.toFixed(2):'0.00'}}</td>
			                          </tr>
			                        </tbody>
			                      </table>
			                    </div>
			                  </td>
			                </tr>
			                <tr>
			                  <td style="line-height:30px;">&nbsp;</td>
			                </tr>
			                <tr>
			                  <td>
			                    <div id="Line" class="table-c">
			                      <table width="100%" class="ListTable">
			                        <thead>
			                          <tr>
			                            <td width="5%">NO</td>
			                            <td>处理人</td>
			                            <td>处理结果</td>
			                            <td>备注</td>
			                            <td>处理日期</td>
			                          </tr>
			                        </thead>
			                        <tbody>
			                          <tr v-for="(p,index) in printsData.Chart" :key="index">
			                            <td>{{index+1}}</td>
			                            <td>{{p.PlanUser ? p.PlanUser : ''}}</td>
			                            <td>{{p.StepName ? p.StepName : ''}}</td>
			                            <td>{{p.OpRemark ? p.OpRemark : ''}}</td>
			                            <td>{{p.OpDate ? p.OpDate : ''}}</td>
			                          </tr>
			                        </tbody>
			                      </table>
			                    </div>
			                  </td>
			                </tr>
			                <tr>
			                  <td>&nbsp;</td>
			                </tr>
			                <tr>
			                  <!--审批流-->
			                  <td>
			                    <div id="Chart" class="table-c"></div>
			                  </td>
			                </tr>
			              </tbody>
			            </table>
					</div>
				</div>
			</el-dialog>
        <!--还款单打印窗口-->
      <el-dialog :visible.sync="dialogPrintVisibleH" :modal-append-to-body="false">
          <div class="printBox cover">
            <el-button size="small" class="center" @click.native="printPdf3()">&#12288;打印&#12288;</el-button>
            <div id="form3">
              <table width="100%" border="0" v-loading="PrintLoading" element-loading-text="正在加载中">
              <caption>
                <h3 id="Doc">{{printsData.ER_Tite || ''}}</h3>
              </caption>
              <thead>
                <tr>
                  <td style="padding:15px 10px;line-height:30px;">
                    <div id="CompanyName" style="float:left">{{printsData.CompanyName || ''}}</div>
                    <div id="Current" style="float:right">打印日期：{{printsData.Current || ''}}</div>
                  </td>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>
                    <div id="div" class="table-c">
                      <table cellpadding="3" width="100%" class="ListTable">
                        <tbody>
                          <tr>
                            <td class="tbTitle">单号</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.DocNo : '' }}</td>
                            <td class="tbTitle">申请人</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.CreateByName : ''}}</td>
                            <td class="tbTitle">申请部门</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.CreateByDeptName : ''}}</td>
                          </tr>
                          <tr>
                            <td class="tbTitle">单据日期</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.DocDateStr : ''}}</td>
                            <td class="tbTitle">还款金额</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.TotalRepayMoney : ''}}</td>
                            <td class="tbTitle">业务描述</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Title : ''}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>借款单号</td>
                            <td>借款日期</td>
                            <td>借款金额</td>
                            <td>欠款金额</td>
                            <td>本次还款金额</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.entity.RepayLineSet" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.BorrowDocNo ? p.BorrowDocNo : ''}}</td>
                            <td>{{p.BorrowDocDate ? p.BorrowDocDate : ''}}</td>
                            <td>{{p.TotalBorrowMoney && p.TotalBorrowMoney ? p.TotalBorrowMoney.toFixed(2) :''}}</td>
                            <td>{{p.CurrentLeaveMoney && p.CurrentLeaveMoney ? p.CurrentLeaveMoney.toFixed(2) :''}}</td>
                            <td>{{p.RepayMoney && p.RepayMoney ? p.RepayMoney.toFixed(2) :''}}</td>                            
                          </tr>
                          <tr>
                            <td colspan="5">合计</td>
                            <td>{{printsData.entity && printsData.entity.RepayLineSetMoney ? printsData.entity.RepayLineSetMoney.toFixed(2):'0.00'}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>处理人</td>
                            <td>处理结果</td>
                            <td>备注</td>
                            <td>处理日期</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.Chart" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.PlanUser ? p.PlanUser : ''}}</td>
                            <td>{{p.StepName ? p.StepName : ''}}</td>
                            <td>{{p.OpRemark ? p.OpRemark : ''}}</td>
                            <td>{{p.OpDate ? p.OpDate : ''}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <!--审批流-->
                  <td>
                    <div id="Chart" class="table-c"></div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </el-dialog>
      
      	<!--
				收入确认单打印窗口
        -->
    <el-dialog title="打印" :visible.sync="dialogPrintVisibleS" :modal-append-to-body="false">
          <div class="printBox cover">
            <el-button size="small" class="center" @click.native="printPdf4()">&#12288;打印&#12288;</el-button>
            <div id="form4">
              <table width="100%" border="0"  v-loading="PrintLoading" element-loading-text="正在加载中">
              <caption>
                <h3 id="Doc">{{printsData.ER_Tite || ''}}</h3>
              </caption>
              <thead>
                <tr>
                    <td style="padding:15px 10px;line-height:30px;">
                        <div id="CompanyName" style="float:left">{{printsData.CompanyName || ''}}</div>
                        <div id="Current" style="float:right">打印日期：{{printsData.Current || ''}}</div>
                    </td>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>
                    <div id="div" class="table-c">
                      <table cellpadding="3" width="100%" class="ListTable">
                        <tbody>
                          <tr>
                            <td class="tbTitle">单号</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Income_DocNo : '' }}</td>
                            <td class="tbTitle">申请人</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.CreateByName : ''}}</td>
                            <td class="tbTitle">申请部门</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.CreateByDeptName : ''}}</td>
                          </tr>
                          <tr>
                            <td class="tbTitle">单据日期</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Income_DocDateStr : ''}}</td>
                            <td class="tbTitle">客户</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Income_CustomerName : ''}}</td>
                            <td class="tbTitle">收入金额</td>
                            <td class="Tabletd">{{printsData.entity && printsData.entity.Income_TotalIncomeMoney ? printsData.entity.Income_TotalIncomeMoney.toFixed(2) : '0.00'}}</td>
                          </tr>
                          <tr>
                            <td class="tbTitle">业务描述</td>
                            <td class="Tabletd" colspan="5">
                              {{printsData.entity ? printsData.entity.Income_Title : '' }}
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>产品</td>
                            <td>预算树</td>
                            <td>预算组织</td>
                            <td>月份</td>
                            <td>预算科目</td>
                            <td>收入金额</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.entity.IncomeLineSet" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.ProductName ? p.ProductName : ''}}</td>
                            <td>{{p.YBDEntity && p.YBDEntity.YearBudgetName ? p.YBDEntity.YearBudgetName : ''}}</td>
                            <td>{{p.YBDEntity && p.YBDEntity.DepartmentName ? p.YBDEntity.DepartmentName : ''}}</td>
                            <td>{{p.YBDEntity && p.YBDEntity.Month ? p.YBDEntity.Month : ''}}</td>
                            <td>{{p.YBDEntity && p.YBDEntity.BudgetItemName ? p.YBDEntity.BudgetItemName : ''}}</td>                                                        
                            <td>{{p  && p.Money ? p.Money.toFixed(2)  : ''}}</td>                            
                          </tr>
                          <tr>
                            <td colspan="6">合计</td>
                            <td>{{printsData.entity && printsData.entity.IncomeLineSetMoney ? printsData.entity.IncomeLineSetMoney.toFixed(2):'0.00'}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>处理人</td>
                            <td>处理结果</td>
                            <td>备注</td>
                            <td>处理日期</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.Chart" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.PlanUser ? p.PlanUser : ''}}</td>
                            <td>{{p.StepName ? p.StepName : ''}}</td>
                            <td>{{p.OpRemark ? p.OpRemark : ''}}</td>
                            <td>{{p.OpDate ? p.OpDate : ''}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <!--审批流-->
                  <td>
                    <div id="Chart" class="table-c"></div>
                  </td>
                </tr>
              </tbody>
            </table>
            </div>
          </div>
    </el-dialog>
    
    		<!--出纳收款打印窗口-->
      <el-dialog :visible.sync="dialogPrintVisibleCS" :modal-append-to-body="false">
          <div class="printBox cover">
            <el-button size="small" class="center" @click.native="printPdf5()">&#12288;打印&#12288;</el-button>
            <div id="form5">
              <table width="100%" border="0" v-loading="PrintLoading" element-loading-text="正在加载中">
              <caption>
                <h3 id="Doc">{{printsData.ER_Tite || ''}}</h3>
              </caption>
              <thead>
                <tr>
                  <td style="padding:15px 10px;line-height:30px;">
                    <div id="CompanyName" style="float:left">{{printsData.CompanyName || ''}}</div>
                    <div id="Current" style="float:right">打印日期：{{printsData.Current || ''}}</div>
                  </td>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>
                    <div id="div" class="table-c">
                      <table cellpadding="3" width="100%" class="ListTable">
                        <tbody>
                          <tr>
                            <td class="tbTitle">单号</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Rcv_DocNO : '' }}</td>
                            <td class="tbTitle">申请人</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.CreateByName : ''}}</td>
                            <td class="tbTitle">申请部门</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.CreateByDeptName : ''}}</td>
                          </tr>
                          <tr>
                            <td class="tbTitle">单据日期</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Pay_DocDateStr : ''}}</td>
                            <td class="tbTitle">收款方式</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Rcv_RcvAccountItemName : ''}}</td>
                            <td class="tbTitle">收款金额</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Rcv_TotalRcvMoney : ''}}</td>
                          </tr>
                          <tr>
                          	<td class="tbTitle">客户</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Rcv_PayCustomerName : ''}}</td>
                            <td class="tbTitle">业务描述</td>
                            <td class="Tabletd" colspan="3">
                              {{printsData.entity ? printsData.entity.Rcv_Title : '' }}
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>单号</td>
                            <td>摘要</td>
                            <td>金额</td>
                            <td>未收款金额</td>
                            <td>本次收款金额</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.entity.PayLineSet" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.RcvLine_Income ? p.RcvLine_Income : ''}}</td>
                            <td>{{p.Income_Title ? p.Income_Title : ''}}</td>
                            <td>{{p.Income_TotalIncomeMoney && p.Income_TotalIncomeMoney ? p.Income_TotalIncomeMoney.toFixed(2) :''}}</td>
                            <td>{{p.RcvLine_CurrentLeaveMoney && p.RcvLine_CurrentLeaveMoney ? p.RcvLine_CurrentLeaveMoney.toFixed(2) :''}}</td>
                            <td>{{p.RcvLine_RcvMoney && p.RcvLine_RcvMoney ? p.RcvLine_RcvMoney.toFixed(2) :''}}</td>                            
                          </tr>
                          <tr>
                            <td colspan="5">合计</td>
                            <td>{{printsData.entity && printsData.entity.PayLineSetMoney ? printsData.entity.PayLineSetMoney.toFixed(2):'0.00'}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>处理人</td>
                            <td>处理结果</td>
                            <td>备注</td>
                            <td>处理日期</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.Chart" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.PlanUser ? p.PlanUser : ''}}</td>
                            <td>{{p.StepName ? p.StepName : ''}}</td>
                            <td>{{p.OpRemark ? p.OpRemark : ''}}</td>
                            <td>{{p.OpDate ? p.OpDate : ''}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <!--审批流-->
                  <td>
                    <div id="Chart" class="table-c"></div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </el-dialog>
      
      	<!--出纳付款打印窗口-->
      <el-dialog :visible.sync="dialogPrintVisibleCF" :modal-append-to-body="false">
          <div class="printBox cover">
            <el-button size="small" class="center" @click.native="printPdf6()">&#12288;打印&#12288;</el-button>
            <div id="form6">
              <table width="100%" border="0" v-loading="PrintLoading" element-loading-text="正在加载中">
              <caption>
                <h3 id="Doc">{{printsData.ER_Tite || ''}}</h3>
              </caption>
              <thead>
                <tr>
                  <td style="padding:15px 10px;line-height:30px;">
                    <div id="CompanyName" style="float:left">{{printsData.CompanyName || ''}}</div>
                    <div id="Current" style="float:right">打印日期：{{printsData.Current || ''}}</div>
                  </td>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>
                    <div id="div" class="table-c">
                      <table cellpadding="3" width="100%" class="ListTable">
                        <tbody>
                          <tr>
                            <td class="tbTitle">单号</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Pay_DocNO : '' }}</td>
                            <td class="tbTitle">申请人</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.CreateByName : ''}}</td>
                            <td class="tbTitle">申请部门</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.CreateByDeptName : ''}}</td>
                          </tr>
                          <tr>
                            <td class="tbTitle">单据日期</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Pay_DocDateStr : ''}}</td>
                            <td class="tbTitle">状态</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Pay_DocStatusName : ''}}</td>
                            <td class="tbTitle">供应商</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Pay_SupplierName : ''}}</td>
                          </tr>
                          <tr>
                            <td class="tbTitle">付款金额</td>
                            <td class="Tabletd">{{printsData.entity && printsData.entity.Pay_TotalPayMoney ? printsData.entity.Pay_TotalPayMoney.toFixed(2) : ''}}</td>
                            <td class="tbTitle">开户银行</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Pay_RcvBank : ''}}</td>
                            <td class="tbTitle">银行账号</td>
                            <td class="Tabletd">{{printsData.entity ? printsData.entity.Pay_RcvBankAccount : ''}}</td>
                          </tr>
                          <tr>
                            <td class="tbTitle">业务描述</td>
                            <td class="Tabletd" colspan="5">
                              {{printsData.entity ? printsData.entity.Pay_Title : '' }}
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>对方科目</td>
                            <td>备注</td>
                            <td>金额</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.entity.PayLineSet" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.PayLine_OtherAccountItemName ? p.PayLine_OtherAccountItemName : ''}}</td>
                            <td>{{p.PayLine_Remark ? p.PayLine_Remark : ''}}</td>
                            <td>{{p && p.PayLine_PayMoney ? p.PayLine_PayMoney.toFixed(2) : ''}}</td>
                          </tr>
                          <tr>
                            <td colspan="3">合计</td>
                            <td>{{printsData.entity && printsData.entity.PayLineSetMoney ? printsData.entity.PayLineSetMoney.toFixed(2):'0.00'}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="line-height:30px;">&nbsp;</td>
                </tr>
                <tr>
                  <td>
                    <div id="Line" class="table-c">
                      <table width="100%" class="ListTable">
                        <thead>
                          <tr>
                            <td width="5%">NO</td>
                            <td>处理人</td>
                            <td>处理结果</td>
                            <td>备注</td>
                            <td>处理日期</td>
                          </tr>
                        </thead>
                        <tbody>
                          <tr v-for="(p,index) in printsData.Chart" :key="index">
                            <td>{{index+1}}</td>
                            <td>{{p.PlanUser ? p.PlanUser : ''}}</td>
                            <td>{{p.StepName ? p.StepName : ''}}</td>
                            <td>{{p.OpRemark ? p.OpRemark : ''}}</td>
                            <td>{{p.OpDate ? p.OpDate : ''}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <!--审批流-->
                  <td>
                    <div id="Chart" class="table-c"></div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </el-dialog>
      
      	<!-- 隐藏页面 -->
        <el-dialog title="查询条件" :visible.sync="dialogFormVisible" size="tiny" :modal-append-to-body="false">
		  <div style="padding: 0px 12%;margin-bottom: 20px;">
		  	<span>金&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;额：</span>
                <el-input v-model="Fu" @change="changeF(Fu)" placeholder="请输入金额" style="width: 30%;"></el-input>
            <span style="margin-left: 10px;">至：</span>
            	<el-input v-model="Yu" @change="changeY(Yu)" placeholder="请输入金额" style="width: 30%;"></el-input>
           	</div>
           	<div style="padding: 0px 12%;margin-bottom: 20px;">
		  	<span>期&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间：</span>
		  		<el-date-picker type="month"   v-model="value9" placeholder="选择期间" :picker-options="pickerOptions0"  style="width: 30%;" @change="riqi1(value9)">
				</el-date-picker>
			<span style="margin-left: 10px;">至：</span>
				<el-date-picker type="month"   v-model="value10" placeholder="选择期间" :picker-options="pickerOptions0"  style="width: 30%;" @change="riqi2(value10)">
				</el-date-picker>
			</div>
			<div style="padding: 0px 12%;margin-bottom: 20px;">
		  		<span>单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</span>
		  		<el-input v-model="value11" placeholder="请输入单号" style="width: 71%;"></el-input>
			</div>
			<div style="padding: 0px 12%;margin-bottom: 20px;">
		  	<span>标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题：</span>
                <el-input v-model="value12" placeholder="请输入标题" style="width: 71%;"></el-input>
			</div>
			<div style="padding: 0px 12%;margin-bottom: 20px;">
			<span>状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：</span>
                <el-select v-model="value13"  placeholder="请选择状态" style="width: 71%;"> 
                    <el-option v-for="item in Yu_Jibie" :key="item.Code" :label="item.Name" :value="item.Code">
                    </el-option>
                </el-select>
            </div>
            <div style="padding: 0px 12%;margin-bottom: 20px;">
			<span>来源单据：</span>
				<el-select v-model='TypeLis' placeholder="请选择" style="width: 71%;">
					<el-option v-for="item in TypeLis_res" :key="item.sex" :label="item.value" :value="item.sex">
					</el-option>
				</el-select>
           </div>
		  
		  <div slot="footer" class="dialog-footer">
		  	<el-button @click="ProfitChongZhi()">重置</el-button>
		    <el-button @click="dialogFormVisible = false">取 消</el-button>
		    <el-button type="primary" @click="ProfitQuedingF()">确 定</el-button>
		  </div>
		</el-dialog>
        
		</div>
	</section>
</template>

<script>
	import axios from "../../../util/axios";
	export default {
		name: "proof",
		data() {
			return {
				exTitle:'',
				excolumn:'',
				exdata:'',
				isdown:'',//导出地址
				printsData: {
			        entity: {
			          BorrowLineSet: []
			        }
			      }, //打印的数据
				PrintLoading: true,//显示打印窗口loading
				dialogPrintVisibleB:false,//报销单打印页面
				dialogPrintVisibleJ:false,//借款单打印页面
				dialogPrintVisibleH:false,//还款单打印页面
				dialogPrintVisibleS:false,//收入确认单打印页面
				dialogPrintVisibleCS:false,//出纳收款打印页面
				dialogPrintVisibleCF:false,//出纳付款单打印页面
				loading2: false,
				temp:100101,
				xiugai:false,//业务修改禁止
				textarea: '',//撤销建议
				checkedA:false,//出纳工作台
				checkedB:false,//业务修改
				checkedC:false,//业务新建
				radio2:1,//单选（业务修改或撤为新建）
				dialogFormVisibleA:false,//撤销窗口默认false
				chexiao: false, //撤销，弃审按钮
				Review: true, //主表，弃审按钮（来源单据为总账凭证且单据状态为已审核，可以弃审）
				sunbLis: true, //主表，提交按钮（只有新建状态可以提交）
				Anti: true, //主表，反记账按钮  （只有状态为已关闭的单据才可以反记账）
				wml: true,//生成模版
				AuThstr: true, //主表，审核按钮（状态为待审核的单据可以审核）
				ChiefAbsTract: '', //主单摘要 
				Debitnuber: '', //借方金额
				creditNuber: '', //贷方金额
				form: {
					name: ""
				},
				TypeLis: "",
				TypeLis_res: [],
				tableData: [], //数据列表
				Period: "", //当前期间，
				PeriodRQ1: "", //当前期间日期起，
				PeriodRQ2: "", //当前期间日期至，
				Period_Date: [], //日期集合
				file: "",
				filters: {
					name: ""
				}, //查询项
				arryOgrp: [],
				formLabelWidth: "120px",
				addFormVisible: false,
				AccoUnti: false,
				total: 0, //数据总数
				rows: 10, //每页显示多少条
				currentPage: 1, //当前页数
				dialogFormVisible: false, //控制添加数据的弹框显示关闭
				//新增界面数据
				SholissAdd: false, //新建页面显隐
				SholissAdd1: false, //编辑页面显隐
				Sholist: true, //总表单显隐
				addForm: {
					voucher: "", //凭证类型
					tableDate: "", //制表日期
					source: "", //来源单类型
					voucherCode: "", //凭证编号
					statuss: "", //状态
					sourceNum: ""
				}, //来源单号
				TraferTime: "",
				changtimes: "",
				filters: {
					//初始化时间
					column: {
						create_start_date: ""
					}
				},
				pickerOptions0: {
		          disabledDate(time) {
		            return time.getTime() >= Date.now() ;
		          }
		        },

				deliveryData: "", //会计期间
				deliveryData_res:[],//会计期间集合
				AbsTract: "",
				TteName: '', //记录科目搜索框内容
				AssistTypedata: [], //辅助核算列表
				company: '', //公司
				customer: '', //客户
				daitan:'',	//待摊
				depart: '', //部门
				employee: '', //员工
				supplier: '', //供应商
				Product:'',	//产品
				yajin:'',	//押金项目
				fzbumen: '', //辅助核算部门部分
				fzCompany: '', //辅助核算公司部分
				fzdaitan:'',	//辅助核算待摊部分
				fzCustomer: '', //辅助核算客户部分
				fzEmployee: '', //辅助核算员工部分
				fzSupplier: '', //辅助核算供应商部分
				fzProduct:'',	//辅助核算产品部分
				fzyajin:'', //辅助核算押金部分
				ATCompany: [], //辅助核算公司
				ATCustomer: [],
				ATDepartment: [],
				ATEmployee: [],
				AtSupplier: [],
				NowList: [{
					fzbumen: "", //辅助核算部门部分
					fzCompany: "", //辅助核算公司部分
					fzdaitan:"",	//辅助核算待摊部分
					fzCustomer: "", //辅助核算客户部分
					fzEmployee: "", //辅助核算员工部分
					fzSupplier: "", //辅助核算供应商部分
					fzProduct:"",	//辅助核算产品部分
					fzyajin:"", //辅助核算押金部分	
					AbsTract: '',
					TteName: '',
					ResBist: '',
					VoucherLine_AssistItem: '',
					VoucherLine_AccountItem: '',
					VoucherLine_DaiMoney: '',
					VoucherLine_JieMoney: '',
					fffffB:[],//部门
					fffffK:[],//客户
					fffffC:[],//产品
					fffffG:[],//公司
					fffffD:[],//待摊
					fffffY:[],//员工
					fffffGYS:[],//供应商
					fffffYJ:[],//押金
				}],
				Tresd: '',
				fzInde: '',
				row: null, //获取点击row的单号
				LowItData: "",
				lowItemRes: [],
				dateValue: "",
				Listres: [], //会计科目列表
				SearList: [], //查询单号列表
				value: "",
				KmOption: '',
				AssisCodeRes: '',
				ResBist: '',
				AllDHlisres: [],
				sunang: '', //借方金额
				sunbng: '', //贷方金额
				kjkmId: '', //会计科目ID
				AllfzHs: '', //拼接好的辅助核算Code
				OddNumbers: '', //查询单号
				BjoddNuber: '', //编辑单号
				/*****查询数据*******/
				pzDocNO: '', //查询凭证编号
				pzAbstracts: '', //查询凭证摘要
				pzStrCreateBy: '', //查询凭证制单人
				pzDocDate: '',
				referVisible: false, //查询弹框
				AllbjList: [], //凭证编辑总表
				allHandle: [], //批量选取
				checked:false,//出纳工作台，false传0，true传1
		        num:4,//勾选包含出纳工作台
		        pingzhengleixing:'',//预览-凭证类型
		        laiyuandan:'',//预览-来源单据
		        yulanzhuangtai:'',//预览-状态
		        laiyuandanhao:'',//预览-来源单号
		        xianjinliu:'',//预览-现金流类型
		        jiefangheji:'',//预览-借方合计
		        daifangheji:'',//预览-贷方合计
		        xianjinqijian:'',//预览-会计期间
		        yulanchuna:'',//预览-出纳
		        yulanjizhang:'',//预览-记账
		        yulanshenhe:'',//预览-审核
		        AssisC:'',//辅助需要名字
		        AssisList:[],//会计数组
		        options:[],//辅助显示初
		        optionsF:[],//辅助真实
		        value8: '',
		        mingzi:'',//登录名字
		        Fu:'',//查询金额（起）
		        Yu:'',//查询金额（终）
		        value9: '',//日期（起）
		        value10: '',//日期（至）
		        value99: '',//日期ID（起）
		        value100: '',//日期ID（至）
		        value999: '',//日期ID中文（起）
		        value1000: '',//日期ID中文（至）
		        value11: '',//单据号
		        value12: '',//标题
		        value13: '',//状态
		        Yu_Jibie:[],
			};

		},
		methods: {
			//时间过滤
	    	formatDate(row, column) {
		      return row.Voucher_DocDate.split("T", 1);
		    },
			submitForList() { //表单提交
				let alldeilc = [];
				this.allHandle.forEach(function(item, index) {
					alldeilc.push(item.Voucher_DocNO)
				})
				console.log(alldeilc)
				
				
				this.$confirm('确认提交?', '提示', {
					type: 'warning'
				}).then(() => {
					axios
					.post('VoSubmit',alldeilc)
					.then((res) => {
						console.log(res)
						this.getList();
						if(res.success){
							this.$message({
								message: res.Message,
								type: 'success'
							});
						}else{
							this.$message({
								message: res.Message,
								type: 'warning'
							});
							
						}
					})
					.catch(err => {
			          console.log(err);	          
			        })
				})
				
			},
			Approve() { //表单审核
				let alldeilc = [];
				this.allHandle.forEach(function(item, index) {
					alldeilc.push(item.Voucher_DocNO)
				})
				console.log(alldeilc)
				
				
				this.$confirm('确认审核?', '提示', {
					type: 'warning'
				}).then(() => {
					axios
					.post('Approve',alldeilc)
					.then((res) => {
						console.log(res)
						this.getList();
						if(res.success){
							this.$message({
								message: res.Message,
								type: 'success'
							});
						}else{
							this.$message({
								message: res.Message,
								type: 'warning'
							});
							
						}
					})
				})
			},
			
			UndoApprove() { //表单弃审
				let alldeilc = [];
				this.allHandle.forEach(function(item, index) {
					alldeilc.push(item.Voucher_DocNO)
				})
				console.log(alldeilc)
				
				
				this.$confirm('确认弃审?', '提示', {
					type: 'warning'
				}).then(() => {
					axios
					.post('UndoApprove',alldeilc)
					.then((res) => {
						console.log(res)
						this.getList();
						if(res.success){
							this.$message({
								message: res.Message,
								type: 'success'
							});
						}else{
							this.$message({
								message: res.Message,
								type: 'warning'
							});
							
						}
					})
				})
			},
			
			
			UndoPost() { //反记账
				let alldeilc = [];
				this.allHandle.forEach(function(item, index) {
					alldeilc.push(item.Voucher_DocNO)
				})
				console.log(alldeilc)
				
				
				this.$confirm('确认反记账?', '提示', {
					type: 'warning'
				}).then(() => {
					axios
					.post('UndoPost',alldeilc)
					.then((res) => {
						console.log(res)
						this.getList();
						if(res.success){
							this.$message({
								message: res.Message,
								type: 'success'
							});
						}else{
							this.$message({
								message: res.Message,
								type: 'warning'
							});
							
						}
					})
				})

			},
			
			WriteOff() { //红字冲销
				let alldeilc = [];
				this.allHandle.forEach(function(item, index) {
					alldeilc.push(item.Voucher_DocNO)
				})
				console.log(alldeilc)
				
				
				this.$confirm('确认红字冲销?', '提示', {
					type: 'warning'
				}).then(() => {
					axios
					.post('WriteOff',alldeilc)
					.then((res) => {
						console.log(res)
						this.getList();
						if(res.success){
							this.$message({
								message: res.Message,
								type: 'success'
							});
						}else{
							this.$message({
								message: res.Message,
								type: 'warning'
							});
							
						}
					})
				})

			},
			SetTemplate() { //设为模版
				let alldeilc = [];
				this.allHandle.forEach(function(item, index) {
					alldeilc.push(item.Voucher_DocNO)
				})
				console.log(alldeilc)
				
				
				this.$confirm('确认设为模版?', '提示', {
					type: 'warning'
				}).then(() => {
					axios
					.post('SetTemplate',alldeilc)
					.then((res) => {
						console.log(res)
						this.getList();
						if(res.success){
							this.$message({
								message: res.Message,
								type: 'success'
							});
						}else{
							this.$message({
								message: res.Message,
								type: 'warning'
							});
							
						}
					})
				})

			},
			delMore() { //批量删除
				let alldeilc = [];
				this.allHandle.forEach(function(item, index) {
					alldeilc.push(item.Voucher_DocNO)
				})
				console.log(alldeilc)
				this.$confirm('确认要删除记录?', '提示', {
					type: 'warning'
				}).then(() => {
					axios.post('DeleteEntity',alldeilc)
					.then((res) => {
						this.$message({
							message: res.Message,
							type: 'success'
						});
						this.getList();
					})
				})
			},
			ChiAbT() {
				console.log('主凭证', this.ChiefAbsTract);
				this.AbsTract = this.ChiefAbsTract;
				console.log(this.NowList.length)
				for(let i = 0 ; i < this.NowList.length ; i++ ){
					this.NowList[i].AbsTract = this.ChiefAbsTract
				}
			},
			handleSelectionChange(val) { //批量，批量选取
				console.log('批量获取', val)
				this.allHandle = val;
				console.log(this.allHandle)
				let itemDate = [];
				let qishen = [];
				this.allHandle.forEach(function(item, index) {
					itemDate.push(item.Voucher_DocStatus)
					var aaa = {Voucher_DocStatus : item.Voucher_DocStatus,
					SourceDocType :	item.SourceDocType}
					qishen.push(aaa)
				})
				console.log(itemDate);
				console.log(qishen)
				// this.daochu()
				//控制提交按钮状态
				let sunbL = itemDate.some((item,index,itemDate) => {
				    return item != 1 
				})
				this.sunbLis = sunbL 
				
				//控制审核按钮状态
				let AuTh = itemDate.some((item,index,itemDate) => {
				    return item != 2 
				})
				this.AuThstr = AuTh 
				
				//控制弃审按钮状态
				let Rev = qishen.some((item,index,qishen) => {
				    return (item.Voucher_DocStatus != 4 || item.SourceDocType != "总账凭证")
				})
				console.log(Rev)
				this.Review = Rev 
				
				//控制反记账，红字冲销按钮状态
				let Antis = itemDate.some((item,index,itemDate) => {
				    return item != 6 
				})
				this.Anti = Antis
				
				
				this.wml = false

			},
			PzCan: function(index, row) { //表单删除
				console.log('选取表单', index, row)
				console.log(row.Voucher_DocNO)
				this.$confirm('确认删除该记录?', '提示', {
					type: 'warning'
				}).then(() => {
					axios.post('DeleteEntity', [row.Voucher_DocNO])
					.then((res) => {
						console.log(res)
						this.getList();
						if(res.success){
							this.$message({
								message: res.Message,
								type: 'success'
							});
						}else{
							this.$message({
								message: res.Message,
								type: 'warning'
							});
							
						}
					})
				})
			},
			PZEdit: function(index, row) { //编辑获取单号进而请求数据
				this.loading2 = true
				this.AccountList();
				this.PZlowItem();
				this.getmingzi();
				console.log('获取编辑条目内容', index, row);
				this.SholissAdd1 = true;
				this.SholissAdd = false;
				this.Sholist = false;
				console.log(row.Voucher_DocNO)
				this.BjoddNuber = row.Voucher_DocNO;
				console.log(this.BjoddNuber)
				axios.post('GetEntityByFullName', {
						sDocNO: this.BjoddNuber
					})
					.then(res => {
						console.log(res,"页面数据");
						this.ChiefAbsTract = res.Voucher_Abstracts //拿到摘要值（主）
						this.TraferTime = res.Voucher_DocDate//凭证日期
						this.deliveryData = res.Voucher_AccountPeriod//会计期间
						this.LowItData = res.Voucher_CashFlowItem //现金流
						this.AllbjList = res.List_VoucherLine   //获取列表详情
					    console.log(this.AllbjList,"列表详情")
					    console.log(this.AllbjList.length,"列表详情长度")
					    console.log(this.NowList,"this.NowList")
					    for(let i = 0 ; i < this.AllbjList.length-1 ; i++){
					    	this.NowList.push({
									fzbumen: "", //辅助核算部门部分
									fzCompany: "", //辅助核算公司部分
									fzdaitan:"",	//辅助核算待摊部分
									fzCustomer: "", //辅助核算客户部分
									fzEmployee: "", //辅助核算员工部分
									fzSupplier: "", //辅助核算供应商部分
									fzProduct:"",	//辅助核算产品部分
									fzyajin:"", //辅助核算押金部分	
									AbsTract: '',
									TteName: '',
									ResBist: '',
									VoucherLine_AssistItem: '',
									VoucherLine_AccountItem: '',
									VoucherLine_DaiMoney: '',
									VoucherLine_JieMoney: '',
									fffffB:[],//部门
									fffffK:[],//客户
									fffffC:[],//产品
									fffffG:[],//公司
									fffffD:[],//待摊
									fffffY:[],//员工
									fffffGYS:[],//供应商
									fffffYJ:[],//押金
					    	})
					    }
//						this.NowList.length = this.AllbjList.length
					    
					    for(let i = 0 ; i < this.AllbjList.length ; i++){
					    	
					    	this.NowList[i].ID = this.AllbjList[i].ID;
					    	
							this.NowList[i].AbsTract = this.AllbjList[i].VoucherLine_Abstracts;
							
							console.log(this.AllbjList[i].VoucherLine_AccountItem,"会计科目")
							this.NowList[i].VoucherLine_AccountItem = this.AllbjList[i].VoucherLine_AccountItem
							
							this.fzcx(i)
							
							this.NowList[i].VoucherLine_JieMoney = this.AllbjList[i].VoucherLine_JieMoney
							console.log(this.NowList[i].VoucherLine_JieMoney,'this.NowList[i].VoucherLine_JieMoney');
							this.NowList[i].VoucherLine_JieMoney=== 0 ? this.NowList[i].VoucherLine_JieMoney = '' : this.NowList[i].VoucherLine_JieMoney;
							
							this.NowList[i].VoucherLine_DaiMoney = this.AllbjList[i].VoucherLine_DaiMoney
							console.log(this.NowList[i].VoucherLine_DaiMoney,'this.NowList[i].VoucherLine_JieMoney');
							this.NowList[i].VoucherLine_DaiMoney=== 0 ? this.NowList[i].VoucherLine_DaiMoney = '' : this.NowList[i].VoucherLine_DaiMoney;

							this.fanCresit();
							this.cesi();
							
							if(this.AllbjList[i].AssistItemJson != "null"){							
								var AssistItemJson = JSON.parse(this.AllbjList[i].AssistItemJson)
								console.log(AssistItemJson)
								console.log(AssistItemJson.length,"长度")
								for(var l = 0 ; l < AssistItemJson.length ; l++){
									if(AssistItemJson[l].AI_AssistItemType == "Department"){//部门
										this.NowList[i].fzbumen = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "Customer"){//客户
										this.NowList[i].fzCustomer = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "Product"){//产品
										this.NowList[i].fzProduct = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "Company"){//公司
										this.NowList[i].fzCompany = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "Employee"){//员工
										this.NowList[i].fzEmployee = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "daitan"){//待摊
										this.NowList[i].fzdaitan = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "Supplier"){//供应商
										this.NowList[i].fzSupplier = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "yajin"){//押金
										this.NowList[i].fzyajin = AssistItemJson[l].AI_Code
									}
								}
							}
						}
						this.loading2 = false
					})
					.catch(err => {
						console.log(err)
					})
			},
			fuzhi: function(index, row) { //编辑获取单号进而请求数据
				this.loading2 = true
				this.AccountList();
				this.PZlowItem();
				console.log('获取编辑条目内容', index, row);
				this.SholissAdd1 = false;
				this.SholissAdd = true;
				this.Sholist = false;
				this.BjoddNuber = row.Voucher_DocNO;
				axios.post('GetEntityByFullName', {
						sDocNO: this.BjoddNuber
					})
					.then(res => {
						console.log(res,"页面数据");
						this.ChiefAbsTract = res.Voucher_Abstracts //拿到摘要值（主）
						this.TraferTime = res.Voucher_DocDate//凭证日期
						this.deliveryData = res.Voucher_AccountPeriod//会计期间
						this.LowItData = res.Voucher_CashFlowItem //现金流
						this.AllbjList = res.List_VoucherLine   //获取列表详情
					    console.log(this.AllbjList,"列表详情")
					    console.log(this.AllbjList.length,"列表详情长度")
					    console.log(this.NowList,"this.NowList")
					    for(let i = 0 ; i < this.AllbjList.length-1 ; i++){
					    	this.NowList.push({
									fzbumen: "", //辅助核算部门部分
									fzCompany: "", //辅助核算公司部分
									fzdaitan:"",	//辅助核算待摊部分
									fzCustomer: "", //辅助核算客户部分
									fzEmployee: "", //辅助核算员工部分
									fzSupplier: "", //辅助核算供应商部分
									fzProduct:"",	//辅助核算产品部分
									fzyajin:"", //辅助核算押金部分	
									AbsTract: '',
									TteName: '',
									ResBist: '',
									VoucherLine_AssistItem: '',
									VoucherLine_AccountItem: '',
									VoucherLine_DaiMoney: '',
									VoucherLine_JieMoney: '',
									fffffB:[],//部门
									fffffK:[],//客户
									fffffC:[],//产品
									fffffG:[],//公司
									fffffD:[],//待摊
									fffffY:[],//员工
									fffffGYS:[],//供应商
									fffffYJ:[],//押金
					    	})
					    }
//						this.NowList.length = this.AllbjList.length
					    
					    for(let i = 0 ; i < this.AllbjList.length ; i++){
					    	
					    	this.NowList[i].ID = this.AllbjList[i].ID;
					    	
							this.NowList[i].AbsTract = this.AllbjList[i].VoucherLine_Abstracts;
							
							console.log(this.AllbjList[i].VoucherLine_AccountItem,"会计科目")
							this.NowList[i].VoucherLine_AccountItem = this.AllbjList[i].VoucherLine_AccountItem
							
							this.fzcx(i)
							
							this.NowList[i].VoucherLine_JieMoney = this.AllbjList[i].VoucherLine_JieMoney
							
							this.NowList[i].VoucherLine_DaiMoney = this.AllbjList[i].VoucherLine_DaiMoney
							
							this.fanCresit();
							this.cesi();
							
							if(this.AllbjList[i].AssistItemJson != "null"){							
								var AssistItemJson = JSON.parse(this.AllbjList[i].AssistItemJson)
								console.log(AssistItemJson)
								console.log(AssistItemJson.length,"长度")
								for(var l = 0 ; l < AssistItemJson.length ; l++){
									if(AssistItemJson[l].AI_AssistItemType == "Department"){//部门
										this.NowList[i].fzbumen = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "Customer"){//客户
										this.NowList[i].fzCustomer = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "Product"){//产品
										this.NowList[i].fzProduct = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "Company"){//公司
										this.NowList[i].fzCompany = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "Employee"){//员工
										this.NowList[i].fzEmployee = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "daitan"){//待摊
										this.NowList[i].fzdaitan = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "Supplier"){//供应商
										this.NowList[i].fzSupplier = AssistItemJson[l].AI_Code
									}
									else if(AssistItemJson[l].AI_AssistItemType == "yajin"){//押金
										this.NowList[i].fzyajin = AssistItemJson[l].AI_Code
									}
								}
							}
						}
						this.loading2 = false
					})
					.catch(err => {
						console.log(err)
					})
			},
			yuandan: function(index, row) { //编辑获取单号进而请求数据
				console.log('获取编辑条目内容', index, row);
				if(row.SourceDocType == "报销单"){
					this.dialogPrintVisibleB = true;
      				this.PrintLoading = true;
					console.log("报销单")
					axios.post('Print', {
						DocNo: row.Voucher_SourceDocNo,
						DocType: row.Voucher_SourceDocType
					})
					.then(res => {
						console.log(res,"页面数据");
						this.printsData = res;
						this.PrintLoading = false;
					})
					.catch(err => {
						console.log(err)
					})
				}
				else if(row.SourceDocType == "借款单"){
					this.dialogPrintVisibleJ = true;
      				this.PrintLoading = true;
					console.log("借款单")
					axios.post('Print', {
						DocNo: row.Voucher_SourceDocNo,
						DocType: row.Voucher_SourceDocType
					})
					.then(res => {
						console.log(res,"页面数据");
						this.printsData = res;
						this.PrintLoading = false;
					})
					.catch(err => {
						console.log(err)
					})
				}
				else if(row.SourceDocType == "还款单"){
					this.dialogPrintVisibleH = true;
      				this.PrintLoading = true;
					console.log("还款单")
					axios.post('Print', {
						DocNo: row.Voucher_SourceDocNo,
						DocType: row.Voucher_SourceDocType
					})
					.then(res => {
						console.log(res,"页面数据");
						this.printsData = res;
						this.PrintLoading = false;
					})
					.catch(err => {
						console.log(err)
					})
				}
				else if(row.SourceDocType == "收入确认单"){
					this.dialogPrintVisibleS = true;
      				this.PrintLoading = true;
					console.log("收入确认单")
					axios.post('Print', {
						DocNo: row.Voucher_SourceDocNo,
						DocType: row.Voucher_SourceDocType
					})
					.then(res => {
						console.log(res,"页面数据");
						this.printsData = res;
						this.PrintLoading = false;
					})
					.catch(err => {
						console.log(err)
					})
				}
				else if(row.SourceDocType == "出纳收款"){
					this.dialogPrintVisibleCS = true;
      				this.PrintLoading = true;
					console.log("出纳收款")
					axios.post('Print', {
						DocNo: row.Voucher_SourceDocNo,
						DocType: row.Voucher_SourceDocType
					})
					.then(res => {
						console.log(res,"页面数据");
						this.printsData = res;
						this.PrintLoading = false;
					})
					.catch(err => {
						console.log(err)
					})
				}
				else if(row.SourceDocType == "出纳付款"){
					this.dialogPrintVisibleCF = true;
      				this.PrintLoading = true;
					console.log("出纳付款")
					axios.post('Print', {
						DocNo: row.Voucher_SourceDocNo,
						DocType: row.Voucher_SourceDocType
					})
					.then(res => {
						console.log(res,"页面数据");
						this.printsData = res;
						this.PrintLoading = false;
					})
					.catch(err => {
						console.log(err)
					})
				}
			},
			printPdf() {//报销
		      $("#form1").jqprint({
		        debug: false,
		        importCSS: true,
		        printContainer: false,
		        operaSupport: false
		      });
		    },
		    printPdf2() {//借款
		      $("#form2").jqprint({
		        debug: false,
		        importCSS: true,
		        printContainer: false,
		        operaSupport: false
		      });
		    },
		    printPdf3() {//还款
		      $("#form3").jqprint({
		        debug: false,
		        importCSS: true,
		        printContainer: false,
		        operaSupport: false
		      });
		    },
		    printPdf4() {//收入确认
		      $("#form4").jqprint({
		        debug: false,
		        importCSS: true,
		        printContainer: false,
		        operaSupport: false
		      });
		    },
		    printPdf5() {//出纳收
		      $("#form5").jqprint({
		        debug: false,
		        importCSS: true,
		        printContainer: false,
		        operaSupport: false
		      });
		    },
		    printPdf6() {//出纳付
		      $("#form6").jqprint({
		        debug: false,
		        importCSS: true,
		        printContainer: false,
		        operaSupport: false
		      });
		    },
			fuyu: function(index, row) { //编辑获取单号进而请求数据
				console.log('获取编辑条目内容', index, row);
				this.BjoddNuber = row.Voucher_DocNO;
				console.log(this.BjoddNuber)
				console.log(row.Voucher_SourceDocType)
				console.log(row.Voucher_DocStatus)
				
				if(row.Voucher_SourceDocType == 101 && row.Voucher_DocStatus == 2){
					console.log("执行1111111")
					let fly = {
						DocNO:this.BjoddNuber,
					}
					console.log(fly)
					axios
						.post('UnDoSubmitFu',fly)
						.then((res) => {
							console.log(res)
							this.getList();
							if(res.success){
								this.$message({
									message: res.Message,
									type: 'success'
								});
							}else{
								this.$message({
									message: res.Message,
									type: 'warning'
								});
								
							}
						})
				}
				else if(row.Voucher_SourceDocType == 701 && row.Voucher_DocStatus == 4){
					console.log("执行2222222")
					let fly = {
						DocNO:this.BjoddNuber,
					}
					console.log(fly)
					axios
						.post('DepDelFu',fly)
						.then((res) => {
							console.log(res)
							this.getList();
							if(res.success){
								this.$message({
									message: res.Message,
									type: 'success'
								});
							}else{
								this.$message({
									message: res.Message,
									type: 'warning'
								});
								
							}
						})
				}
				else if(row.Voucher_SourceDocType == 600 && row.Voucher_DocStatus == 4){
					console.log("执行3333333")
					let fly = {
						DocNO:this.BjoddNuber,
					}
					console.log(fly)
					axios
						.post('BisDelFu',fly)
						.then((res) => {
							console.log(res)
							this.getList();
							if(res.success){
								this.$message({
									message: res.Message,
									type: 'success'
								});
							}else{
								this.$message({
									message: res.Message,
									type: 'warning'
								});
								
							}
						})
				}
				else if((row.Voucher_SourceDocType == 301 ||row.Voucher_SourceDocType == 302 ||row.Voucher_SourceDocType == 303 ||row.Voucher_SourceDocType == 304 ||row.Voucher_SourceDocType == 401 ||row.Voucher_SourceDocType == 402 ||row.Voucher_SourceDocType == 607 ||row.Voucher_SourceDocType == 608 ||row.Voucher_SourceDocType == 610 ||row.Voucher_SourceDocType == 611) && (row.Voucher_DocStatus == 4 ||row.Voucher_DocStatus == 5)){
					console.log("444444444")
					if(row.Voucher_SourceDocType == 301 ||row.Voucher_SourceDocType == 302 ||row.Voucher_SourceDocType == 303){
						this.checkedA = true
						this.checkedB = false
						this.checkedC = false
						this.textarea = ''
						this.dialogFormVisibleA = true
					}
					else if(row.Voucher_SourceDocType == 401 ||row.Voucher_SourceDocType == 402){
						this.checkedB = false
						this.checkedC = false
						this.textarea = ''
						this.dialogFormVisibleA = true
					}
					else if(row.Voucher_SourceDocType == 304){
						this.checkedC = false
						this.textarea = ''
						this.dialogFormVisibleA = true
						this.xiugai = true
					}
				}else{
					alert("该单据不能撤销")
				}
					
			},
			ProfitQueding(){
				if(this.checkedA == true && this.checkedB == true && this.checkedC == false){
					this.num = 1
					this.panduan()
				}
				else if(this.checkedA == true && this.checkedB == false && this.checkedC == true){
					this.num = 2
					this.panduan()
				}
				else if(this.checkedA == true && this.checkedB == false && this.checkedC == false){
					this.num = 0
					this.panduan()
				}
				else if(this.checkedA == false && this.checkedB == true && this.checkedC == false){
					this.num = 1
					this.panduan()
				}
				else if(this.checkedA == false && this.checkedB == false && this.checkedC == true){
					this.num = 2
					this.panduan()
				}
				else if(this.checkedA == false && this.checkedB == false && this.checkedC == false){
					alert("请勾选一个！")
				}
				else if(this.checkedA == true && this.checkedB == true && this.checkedC == true){
					alert("不能同时勾选，请勾选一个！")
				}
			},	
			panduan(){	
				console.log(this.BjoddNuber)
				console.log(this.textarea)
				console.log(this.num)
				
				let fly = {
					docNO:this.BjoddNuber,
					strMsg:this.textarea,
					sDirection:this.num
				}
				console.log(fly)
				axios
					.post('RepealFu',fly)
					.then((res) => {
						console.log(res)
						this.getList();
						this.dialogFormVisibleA = false
						if(res.success){
							this.$message({
								message: res.Message,
								type: 'success'
							});
						}else{
							this.$message({
								message: res.Message,
								type: 'warning'
							});
							
						}
					})
			},
			abmo: function(row) { //查询 //GetEntityName    查看凭证内容接口
				this.OddNumbers = row.Voucher_DocNO
				console.log(this.OddNumbers)
				axios
					.post('GetEntityByFullName', {
						sDocNO: this.OddNumbers
					})
					.then(data => {
						this.referVisible = true;
						console.log('查询凭证数据查看查询凭证数据查看', data);
						this.pingzhengleixing = data.strDocType //凭证类型
						this.SearList = data.List_VoucherLine //凭证列表(明细)
						this.pzDocDate = data.Voucher_DocDate.substring(0, 10) //制单日期
						this.pzDocNO = data.Voucher_DocNO //凭证编号
						this.pzAbstracts = data.Voucher_Abstracts //显示摘要
						this.pzStrCreateBy = data.strCreateBy //制单人
						this.laiyuandan = data.strSourceDocType //预览-来源单据类型
						this.yulanzhuangtai = data.strDocStatus //预览-状态
						this.laiyuandanhao = data.Voucher_SourceDocNo //预览-来源单号
						this.xianjinliu = data.strCashFlowItem //预览-现金流类型
						this.jiefangheji = data.TotalJieMoney//预览-借方合计
				        this.daifangheji = data.TotalDaiMoney//预览-贷方合计
						this.xianjinqijian = data.Voucher_AccountPeriod //预览-会计期间
						this.yulanchuna = data.strCashBy //预览-出纳
				        this.yulanjizhang = data.strCashBy//预览-记账
					})
					.catch(err => {
						console.log(err)
					});

			},
			ewEntityrs() {		
				axios //默认凭证值=>请求制单日期限制值
					.post("Vouchertity")
					.then(res => {
						var moment = require("moment");
						//console.log(res.Voucher_CreateDate)
						this.TraferTime = res.Voucher_CreateDate
						this.filters.column.create_start_date = res.Voucher_CreateDate;
						if(this.filters.column.create_start_date) {
							this.filters.column.create_start_date = moment(
								this.filters.column.create_start_date
							);
						}
					})
					.catch(err => {
						console.log(err);
					});
			},
			ZdData(data) {
				var str = data;
				this.TraferTime = str
				this.deliveryData = str.substring(0, 7);
			},
			isBigEnough(value) {
			  return value !== "undefined";
			},
			/******
			 * 保存
			 * ********/
			Referadd() {
				if(this.ChiefAbsTract){//主单摘要
					this.Referadd_2();
				}else{
					this.$notify({
						title: '提醒',
						message: '请填写业务描述',
						type: 'warning'
					});
				}
			},	
			Referadd_2(){
				if(this.NowList.length>0){
					this.Referadd_3();
				}else{
					this.$notify({
						title: '提醒',
						message: '请添加凭证明细',
						type: 'warning'
					});
				}
			},								
			Referadd_3(){
				this.loading2 = true
				let fulyu = []
				let shiqianli = []
				console.log(this.NowList);
				console.log(this.NowList.length);
				for(let i = 0 ; i < this.NowList.length ; i++){
					if(this.NowList[i].VoucherLine_AccountItem == '' ){
						fulyu = this.NowList.splice(i,1)
					}
				}
				console.log(fulyu)
				console.log(this.NowList)
				for(let l = 0 ; l < this.NowList.length ; l++){
					let filtered1 = this.NowList[l].fzCustomer+','+this.NowList[l].fzProduct+','+this.NowList[l].fzbumen+','+this.NowList[l].fzCompany+','+this.NowList[l].fzdaitan+','+this.NowList[l].fzEmployee+','+this.NowList[l].fzSupplier+','+this.NowList[l].fzyajin
					console.log(filtered1)
					let filtered2 = filtered1.split(',')
					let filtered3 = filtered2.filter(this.isBigEnough)
					let filtered4 = filtered3.join(',')
					console.log(filtered2)
					console.log(filtered3,"111111111111111111")
					let fuyufuyu = {
						VoucherLine_AbsTracts: this.NowList[l].AbsTract,
						TteName: this.NowList[l].TteName,
						ResBist: this.NowList[l].ResBist,
						VoucherLine_AssistItem: filtered4,
						VoucherLine_AccountItem: this.NowList[l].VoucherLine_AccountItem,
						VoucherLine_DaiMoney: this.NowList[l].VoucherLine_DaiMoney,
						VoucherLine_JieMoney: this.NowList[l].VoucherLine_JieMoney,
					}
					shiqianli.push(fuyufuyu)
				}
				console.log(shiqianli)
				let AllTent = {
							ID: this.BjoddNuber,
					        Voucher_DocType: 101,//凭证类型
					        Voucher_DocDate: this.TraferTime,//凭证日期
					        Voucher_SourceDocType: 101,//原单类型(凭证类型)
					        Voucher_Abstracts: this.ChiefAbsTract,//主单摘要
					        Voucher_DocNO: "新建",//不改
					        Voucher_DocStatus: "1",//不改
					        Voucher_SourceDocNo: "",//不改
					        Voucher_CashFlowItem: this.LowItData,// 现金流(现金流量类型)
					        Voucher_AccountPeriod: this.deliveryData,//会计期间
					        List_VoucherLine: shiqianli
				}
					console.log(AllTent)
					//增加凭证 接口’EntityAdd‘
				axios.post('EntityAdd', AllTent)
					.then((res) => {
						console.log(res)
						this.BjoddNuber = res.Data
						this.loading2 = false
						if(res.Success){
							this.$notify({
								title: '提醒',
								message: res.Message,
								type: 'success',
								duration: 800
							});	
						}else{
							this.$notify({
								title: '提醒',
								message: res.Message,
								type: 'warning',
								duration: 1800
							});
						}

					}).catch((err) => {
						console.log(err)
						this.$notify({
								title: '提醒',
								message: err.Message,
								type: 'warning'
							});
					});
			},
			/*******
			 ******编辑保存（更新）
			 ***/
			EntitySave() {
				if(this.ChiefAbsTract){//主单摘要
					this.EntitySave_2();
				}else{
					this.$notify({
						title: '提醒',
						message: '请填写业务描述',
						type: 'warning'
					});
				}
			},	
			EntitySave_2(){
				if(this.NowList.length>0){
					this.EntitySave_3();
				}else{
					this.$notify({
						title: '提醒',
						message: '请添加凭证明细',
						type: 'warning'
					});
				}
			},								
			EntitySave_3(){
				this.loading2 = true
				let fulyu = []
				let shiqianli = []
				console.log(this.NowList,"1111111111");
				console.log(this.NowList.length);
				for(let i = 0 ; i < this.NowList.length ; i++){
					if(this.NowList[i].VoucherLine_DaiMoney == '' && this.NowList[i].VoucherLine_JieMoney == ''){
						fulyu = this.NowList.splice(i,1)
					}
				}
				console.log(fulyu)
				console.log(this.NowList)
				for(let l = 0 ; l < this.NowList.length ; l++){
					let filtered1 = this.NowList[l].fzCustomer+','+this.NowList[l].fzProduct+','+this.NowList[l].fzbumen+','+this.NowList[l].fzCompany+','+this.NowList[l].fzdaitan+','+this.NowList[l].fzEmployee+','+this.NowList[l].fzSupplier+','+this.NowList[l].fzyajin
					console.log(filtered1)
					let filtered2 = filtered1.split(',')
					let filtered3 = filtered2.filter(this.isBigEnough)
					let filtered4 = filtered3.join(',')
					console.log(filtered2)
					console.log(filtered3,"111111111111111111")
					let fuyufuyu = {
						ID: this.NowList[l].ID,
						VoucherLine_AbsTracts: this.NowList[l].AbsTract,
						TteName: this.NowList[l].TteName,
						ResBist: this.NowList[l].ResBist,
						VoucherLine_AssistItem: filtered4,
						VoucherLine_AccountItem: this.NowList[l].VoucherLine_AccountItem,
						VoucherLine_DaiMoney: this.NowList[l].VoucherLine_DaiMoney,
						VoucherLine_JieMoney: this.NowList[l].VoucherLine_JieMoney,
					}
					shiqianli.push(fuyufuyu)
				}
				console.log(shiqianli)
				let AllMenu = {
							ID: "0",	
					        Voucher_DocType: 101,//凭证类型
					        Voucher_DocDate: this.TraferTime,//凭证日期
					        Voucher_SourceDocType: 101,//原单类型(凭证类型)
					        Voucher_Abstracts: this.ChiefAbsTract,//主单摘要
					        Voucher_DocNO: this.BjoddNuber,//凭证号
					        Voucher_DocStatus: "1",//不改
					        Voucher_SourceDocNo: "",//不改
					        Voucher_CashFlowItem: this.LowItData,// 现金流(现金流量类型)
							Voucher_AccountPeriod: this.deliveryData,//会计期间
					        List_VoucherLine: shiqianli
				}
				console.log(AllMenu)
				axios.post('EntitySave', AllMenu)
					.then((res) => {
						console.log(res)
						this.loading2 = false
						this.getList();
						if(res.Success){
						/* 	this.SholissAdd1 = false; //编辑页面隐藏
							this.Sholist = true; //查询总表显示  //控制返回 */
							this.$notify({
								title: '提醒',
								message: '编辑修改成功',
								type: 'success',
								duration: 800
							});	
						}else{
							this.$notify({
								title: '提醒',
								message: res.Message,
								type: 'warning',
								duration: 1800
							});
						}
					})
					.catch((err) => {
						console.log(err)
						this.$notify({
								title: '提醒',
								message: err.Message,
								type: 'warning'
							});
					});

			},
			/*******
			 ******新建提交
			 ***/
			SaveAll() {
				if(this.ChiefAbsTract){//主单摘要
					this.SaveAll_2();
				}else{
					this.$notify({
						title: '提醒',
						message: '请填写业务描述',
						type: 'warning'
					});
				}
			},	
			SaveAll_2(){
				if(this.NowList.length>0){
					this.SaveAll_3();
				}else{
					this.$notify({
						title: '提醒',
						message: '请添加凭证明细',
						type: 'warning'
					});
				}
			},								
			SaveAll_3(){
				this.loading2 = true
				let fulyu = []
				let shiqianli = []
				console.log(this.NowList);
				console.log(this.NowList.length);
				for(let i = 0 ; i < this.NowList.length ; i++){
					if(this.NowList[i].VoucherLine_AccountItem == '' ){
						fulyu = this.NowList.splice(i,1)
					}
				}
				console.log(fulyu)
				console.log(this.NowList)
				for(let l = 0 ; l < this.NowList.length ; l++){
					let filtered1 = this.NowList[l].fzCustomer+','+this.NowList[l].fzProduct+','+this.NowList[l].fzbumen+','+this.NowList[l].fzCompany+','+this.NowList[l].fzdaitan+','+this.NowList[l].fzEmployee+','+this.NowList[l].fzSupplier+','+this.NowList[l].fzyajin
					console.log(filtered1)
					let filtered2 = filtered1.split(',')
					let filtered3 = filtered2.filter(this.isBigEnough)
					let filtered4 = filtered3.join(',')
					console.log(filtered2)
					console.log(filtered3,"111111111111111111")
					let fuyufuyu = {
						VoucherLine_AbsTracts: this.NowList[l].AbsTract,
						TteName: this.NowList[l].TteName,
						ResBist: this.NowList[l].ResBist,
						VoucherLine_AssistItem: filtered4,
						VoucherLine_AccountItem: this.NowList[l].VoucherLine_AccountItem,
						VoucherLine_DaiMoney: this.NowList[l].VoucherLine_DaiMoney,
						VoucherLine_JieMoney: this.NowList[l].VoucherLine_JieMoney,
					}
					shiqianli.push(fuyufuyu)
				}
				console.log(shiqianli)
				let AllTent = {
					        ID: "0",	
					        Voucher_DocType: 101,//凭证类型
					        Voucher_DocDate: this.TraferTime,//凭证日期
					        Voucher_SourceDocType: 101,//原单类型(凭证类型)
					        Voucher_Abstracts: this.ChiefAbsTract,//主单摘要
					        Voucher_DocNO: this.BjoddNuber,//凭证号
					        Voucher_DocStatus: "1",//不改
					        Voucher_SourceDocNo: "",//不改
					        Voucher_CashFlowItem: this.LowItData,// 现金流(现金流量类型)
							Voucher_AccountPeriod: this.deliveryData,//会计期间
					        List_VoucherLine: shiqianli
				}
				console.log(AllTent)
				axios.post('InteriorSubmit', AllTent)
					.then((res) => {
						console.log(res)
						this.loading2 = false
						if(res.Success){
							this.getList();
							this.SholissAdd = false; //新建页面隐藏
							this.Sholist = true; //查询总表显示  //控制返回
							this.$notify({
								title: '提醒',
								message: res.Message,
								type: 'success'
							});	
						}else{
							this.$notify({
								title: '提醒',
								message: res.Message,
								type: 'warning'
							});
						}

					}).catch((err) => {
						console.log(err)
						this.$notify({
								title: '提醒',
								message: err.Message,
								type: 'warning'
							});
					});
				
			},
			/*******
			 ******编辑提交
			 ***/
			Submit() {
				if(this.ChiefAbsTract){//主单摘要
					this.Submit_2();
				}else{
					this.$notify({
						title: '提醒',
						message: '请填写业务描述',
						type: 'warning'
					});
				}
			},	
			Submit_2(){
				if(this.NowList.length>0){
					this.Submit_3();
				}else{
					this.$notify({
						title: '提醒',
						message: '请添加凭证明细',
						type: 'warning'
					});
				}
			},								
			Submit_3(){
				this.loading2 = true
				let fulyu = []
				let shiqianli = []
				console.log(this.NowList,"1111111111");
				console.log(this.NowList.length);
				for(let i = 0 ; i < this.NowList.length ; i++){
					if(this.NowList[i].VoucherLine_DaiMoney == '' && this.NowList[i].VoucherLine_JieMoney == ''){
						fulyu = this.NowList.splice(i,1)
					}
				}
				console.log(fulyu)
				console.log(this.NowList)
				for(let l = 0 ; l < this.NowList.length ; l++){
					let filtered1 = this.NowList[l].fzCustomer+','+this.NowList[l].fzProduct+','+this.NowList[l].fzbumen+','+this.NowList[l].fzCompany+','+this.NowList[l].fzdaitan+','+this.NowList[l].fzEmployee+','+this.NowList[l].fzSupplier+','+this.NowList[l].fzyajin
					console.log(filtered1)
					let filtered2 = filtered1.split(',')
					let filtered3 = filtered2.filter(this.isBigEnough)
					let filtered4 = filtered3.join(',')
					console.log(filtered2)
					console.log(filtered3,"111111111111111111")
					let fuyufuyu = {
						ID: this.NowList[l].ID,
						VoucherLine_AbsTracts: this.NowList[l].AbsTract,
						TteName: this.NowList[l].TteName,
						ResBist: this.NowList[l].ResBist,
						VoucherLine_AssistItem: filtered4,
						VoucherLine_AccountItem: this.NowList[l].VoucherLine_AccountItem,
						VoucherLine_DaiMoney: this.NowList[l].VoucherLine_DaiMoney,
						VoucherLine_JieMoney: this.NowList[l].VoucherLine_JieMoney,
					}
					shiqianli.push(fuyufuyu)
				}
				console.log(shiqianli)
				let AllMenu = {
							ID: "0",	
					        Voucher_DocType: 101,//凭证类型
					        Voucher_DocDate: this.TraferTime,//凭证日期
					        Voucher_SourceDocType: 101,//原单类型(凭证类型)
					        Voucher_Abstracts: this.ChiefAbsTract,//主单摘要
					        Voucher_DocNO: this.BjoddNuber,//凭证号
					        Voucher_DocStatus: "1",//不改
					        Voucher_SourceDocNo: "",//不改
					        Voucher_CashFlowItem: this.LowItData,// 现金流(现金流量类型)
							Voucher_AccountPeriod: this.deliveryData,//会计期间
					        List_VoucherLine: shiqianli
				}
				console.log(AllMenu)
				axios.post('InteriorSubmit', AllMenu)
					.then((res) => {
						console.log(res)
						this.loading2 = false
						if(res.Success){
							this.getList();
							this.SholissAdd1 = false; //编辑页面隐藏
							this.Sholist = true; //查询总表显示  //控制返回
							this.$notify({
								title: '提醒',
								message: res.Message,
								type: 'success'
							});	
						}else{
							this.$notify({
								title: '提醒',
								message: res.Message,
								type: 'warning'
							});
						}
					})
					.catch((err) => {
						console.log(err)
						this.$notify({
								title: '提醒',
								message: err.Message,
								type: 'warning'
							});
					});

			},
			/******
			 ******凭证明细添加行
			 ***/
			addlist() {
				//添加行
				// this.NowList.length=0; //清零
//				this.NowList[0].VoucherLine_Abstracts = this.ChiefAbsTract
				this.NowList.push({
					VoucherLine_Abstracts: this.ChiefAbsTract,
					AbsTract : this.ChiefAbsTract,
					TteName: '',
					ResBist: '',
					VoucherLine_AssistItem: '',
					VoucherLine_AccountItem: '',
					VoucherLine_DaiMoney: '',
					VoucherLine_JieMoney: '',
					ID:0,
				});
//				this.NowList.push({VoucherLine_Abstracts:this.AbsTract});
				console.log(this.NowList);
			},
			AddAbsTract(index,e) {
				console.log(e,"明细摘要")
				console.log(index,"明细摘要")
				this.NowList[index].VoucherLine_Abstracts = e;
			},

			fzcx(index) { //打开辅助核算
				console.log(index)
				console.log(this.NowList, '请求表');
				console.log(this.NowList[index].VoucherLine_AccountItem)

				console.log(this.NowList[index],'1111')
				this.$set(this.NowList[index],'isCopemer',false);//部门
				this.$set(this.NowList[index],'isCusomer',false);//客户
				this.$set(this.NowList[index],'isProduct',false);//产品
				this.$set(this.NowList[index],'isdaitan',false);//待摊
				this.$set(this.NowList[index],'isCompany',false);//公司
				this.$set(this.NowList[index],'isEmployee',false);//员工
				this.$set(this.NowList[index],'isSupplier',false);//供应商
				this.$set(this.NowList[index],'isyajin',false);//押金
				console.log(this.NowList[index],'2222')
				axios.post('Fu_GetAssistItemTypes', { //拿到值，判断
						AccountItem: this.NowList[index].VoucherLine_AccountItem,
					}).then(res => {
						console.log(res,"请求的数据")
						for(var i = 0 ; i < res.length ; i++){
							this.AssisC = res[i].Code
							console.log(this.AssisC)
							if(this.AssisC == "Department"){//部门
								var storage=window.localStorage;
								if(storage.fffffB){
									this.NowList[index].isCopemer = true
									this.$set(this.NowList[index],'fffffB',JSON.parse(storage.fffffB));
								}else{
									console.log("进入部门")
									this.NowList[index].isCopemer = true
									axios
										.post('istItemdata', { //拿到值，判断
											strType: this.AssisC,
										})
										.then(res => {
											let Details = []
									        for(let i = 0 ; i<res.length ; i++ ){
									        	let Data = { value: res[i].AI_Code , label: res[i].AI_Name}
									        	Details.push(Data)
									        }
									        this.$set(this.NowList[index],'fffffB',Details);
									        var a=JSON.stringify(Details);
									        storage.setItem("fffffB",a);
									   })
								}
							}
							else if(this.AssisC == "Customer"){//客户
								var storage=window.localStorage;
								if(storage.fffffK){
									this.NowList[index].isCusomer = true
									this.$set(this.NowList[index],'fffffK',JSON.parse(storage.fffffK));
								}else{
									console.log("进入客户")
									this.NowList[index].isCusomer = true
									axios
										.post('istItemdata', { //拿到值，判断
											strType: this.AssisC,
										})
										.then(res => {
											let Details = []
									        for(let i = 0 ; i<res.length ; i++ ){
									        	let Data = { value: res[i].AI_Code , label: res[i].AI_Name}
									        	Details.push(Data)
									        }
									        this.$set(this.NowList[index],'fffffK',Details);
									        var b=JSON.stringify(Details);
									        storage.setItem("fffffK",b);
									    })
								}	
							}
							else if(this.AssisC == "Product"){//产品
								var storage=window.localStorage;
								if(storage.fffffC){
									this.NowList[index].isProduct = true
									this.$set(this.NowList[index],'fffffC',JSON.parse(storage.fffffC));
								}else{
									console.log("进入产品")
									this.NowList[index].isProduct = true
									axios
										.post('istItemdata', { //拿到值，判断
											strType: this.AssisC,
										})
										.then(res => {
											let Details = []
									        for(let i = 0 ; i<res.length ; i++ ){
									        	let Data = { value: res[i].AI_Code , label: res[i].AI_Name}
									        	Details.push(Data)
									        }
									        this.$set(this.NowList[index],'fffffC',Details);
									        var c=JSON.stringify(Details);
									        storage.setItem("fffffC",c);
									    })
								}	
							}
							else if(this.AssisC == "daitan"){//待摊
								var storage=window.localStorage;
								if(storage.fffffD){
									this.NowList[index].isdaitan = true
									this.$set(this.NowList[index],'fffffD',JSON.parse(storage.fffffD));
								}else{
									console.log("进入待摊")
									this.NowList[index].isdaitan = true
									axios
										.post('istItemdata', { //拿到值，判断
											strType: this.AssisC,
										})
										.then(res => {
											let Details = []
									        for(let i = 0 ; i<res.length ; i++ ){
									        	let Data = { value: res[i].AI_Code , label: res[i].AI_Name}
									        	Details.push(Data)
									        }
									        this.$set(this.NowList[index],'fffffD',Details);
									        var d=JSON.stringify(Details);
									        storage.setItem("fffffD",d);
									    })
								}	
							}
							else if(this.AssisC === "Company"){//公司
								var storage=window.localStorage;
								if(storage.fffffG){
									this.NowList[index].isCompany = true
									this.$set(this.NowList[index],'fffffG',JSON.parse(storage.fffffG));
								}else{
									console.log("进入公司")
									this.NowList[index].isCompany = true
									axios
										.post('istItemdata', { //拿到值，判断
											strType: this.AssisC,
										})
										.then(res => {
											let Details = []
									        for(let i = 0 ; i<res.length ; i++ ){
									        	let Data = { value: res[i].AI_Code , label: res[i].AI_Name}
									        	Details.push(Data)
									        }
									        this.$set(this.NowList[index],'fffffG',Details);
									        var e=JSON.stringify(Details);
									        storage.setItem("fffffG",e);
									    })
								}	
							}
							else if(this.AssisC == "Employee"){//员工
								var storage=window.localStorage;
								if(storage.fffffY){
									this.NowList[index].isEmployee = true
									this.$set(this.NowList[index],'fffffY',JSON.parse(storage.fffffY));
								}else{
									console.log("进入员工")
									this.NowList[index].isEmployee = true
									axios
										.post('istItemdata', { //拿到值，判断
											strType: this.AssisC,
										})
										.then(res => {
											let Details = []
									        for(let i = 0 ; i<res.length ; i++ ){
									        	let Data = { value: res[i].AI_Code , label: res[i].AI_Name}
									        	Details.push(Data)
									        }
									        this.$set(this.NowList[index],'fffffY',Details);
									        var f=JSON.stringify(Details);
									        storage.setItem("fffffY",f);
									    })
								}	
							}
							else if(this.AssisC == "Supplier"){//供应商
								var storage=window.localStorage;
								if(storage.fffffGYS){
									this.NowList[index].isSupplier = true
									this.$set(this.NowList[index],'fffffGYS',JSON.parse(storage.fffffGYS));
								}else{
									console.log("进入供应商")
										this.NowList[index].isSupplier = true
										axios
											.post('istItemdata', { //拿到值，判断
												strType: this.AssisC,
											})
											.then(res => {
												let Details = []
										        for(let i = 0 ; i<res.length ; i++ ){
										        	let Data = { value: res[i].AI_Code , label: res[i].AI_Name}
										        	Details.push(Data)
										        }
										        this.$set(this.NowList[index],'fffffGYS',Details);
										        var g=JSON.stringify(Details);
										        storage.setItem("fffffGYS",g);
										    })
								}		
							}
							else if(this.AssisC == "yajin"){//押金
								var storage=window.localStorage;
								if(storage.fffffYJ){
									this.NowList[index].isyajin = true
									this.$set(this.NowList[index],'fffffYJ',JSON.parse(storage.fffffYJ));
								}else{
									console.log("进入押金")
									this.NowList[index].isyajin = true
									axios
										.post('istItemdata', { //拿到值，判断
											strType: this.AssisC,
										})
										.then(res => {
											let Details = []
									        for(let i = 0 ; i<res.length ; i++ ){
									        	let Data = { value: res[i].AI_Code , label: res[i].AI_Name}
									        	Details.push(Data)
									        }
									        this.$set(this.NowList[index],'fffffYJ',Details);
									        var h=JSON.stringify(Details);
									        storage.setItem("fffffYJ",h);
									    })
									}
							}	
						}
					})		
				//清除选项         
			},
			changSele(index) {
				console.log(index)
			},
			sumMation(index, Debitnuber) { //借方金额
				if(this.NowList[index].VoucherLine_DaiMoney || this.NowList[index].VoucherLine_DaiMoney===0){
					this.NowList[index].VoucherLine_DaiMoney = ''
				}
				this.Debitnuber = Debitnuber
				this.NowList[index].VoucherLine_JieMoney = this.Debitnuber.toFixed(2);
				console.log(this.NowList[index].VoucherLine_JieMoney,'借方');
				console.log(this.NowList)
				this.cesi()
			},
			credit(index, creditNuber) { //贷方金额
				if(this.NowList[index].VoucherLine_JieMoney || this.NowList[index].VoucherLine_JieMoney===0){
					this.NowList[index].VoucherLine_JieMoney = ''
				}
				this.creditNuber = creditNuber
					//creditNuber:贷方金额
				this.NowList[index].VoucherLine_DaiMoney = this.creditNuber.toFixed(2);
				console.log(this.NowList[index].VoucherLine_DaiMoney,'贷方')
				console.log(this.NowList)
				this.fanCresit()
			},
			fuyuW(num,attr1,attr2){
				console.log(num,`num`);
				if (this.isUndefined(attr2)) {//有attr1,没有attr2
					if (!this.isFalse(num[attr1])) {
						num[attr1]=Math.round(Number(num[attr1])*100)/100;
					}  
				}else{////有attr1,有attr2
					if (!this.isFalse(num[attr1][attr2])) {   
						num[attr1][attr2]=Math.round(Number(num[attr1][attr2])*100)/100
					}
				}
				this.Debitnuber = ''
				this.creditNuber = ''
			},
			fanCresit() { //贷方金额叠加
				var bng = 0;
				var addCrit = [];
				this.NowList.forEach(function(item, index) {
					/* item.VoucherLine_DaiMoney == '' ? item.VoucherLine_DaiMoney = 0 : item.VoucherLine_DaiMoney */
					addCrit.push(item.VoucherLine_DaiMoney)
				});
				addCrit.forEach(function(item, index) {
					item = Number(item); /* +陈冠成 */
					/* var Rizi = parseFloat(item) /陈冠成/*/
					var Rizi = Math.round(parseFloat(item) * 100)/100;
					return bng += Rizi
				});
				this.sunbng = bng.toFixed(2)
			},
			cesi() { //借方金额叠加
				var ang = 0;
				var addsun = [];
				this.NowList.forEach(function(item, index) {
					/* item.VoucherLine_JieMoney == '' ? item.VoucherLine_JieMoney = 0 : item.VoucherLine_JieMoney */
					addsun.push(item.VoucherLine_JieMoney)
				});
				//Debitnuber:借方金额
				addsun.forEach(function(item, index) {
					item = Number(item); /* +陈冠成 */
					/* var num = parseFloat(item); /陈冠成/*/
					var num = Math.round(parseFloat(item) * 100)/100;
					return ang += num
				});
				this.sunang = ang.toFixed(2);
			},
			check (event) {/*陈冠成 */
        let val = event.target.value
        val = val.replace(/[^\d.]/g, '') // 清除"数字"和"."以外的字符
        val = val.replace(/^\./g, '') // 验证第一个字符是数字
        val = val.replace(/\.{2,}/g, '.') // 只保留第一个, 清除多余的
        val = val.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.')
        // eslint-disable-next-line
        val = val.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3') // 只能输入两个小数
        event.target.value = val
      },
			dangjuFrom() { //转换后台json格式
				axios
					.post("GetAllSourceDocType")
					.then(res => {
						console.log(res,"来源单据")
						let arry = []
						let bumen = {sex:"",value:"全部"}
				        for(let i = 0 ; i<res.length ; i++ ){
				        	let Data = { sex: res[i].DocType , value: res[i].DocTypeName }
				        	arry.push(Data)
				        }
				        arry.unshift(bumen)
				        this.TypeLis_res = arry
						this.TypeLis = this.TypeLis_res[0].sex

						console.log(this.TypeLis_res,"来源")

					})
					.catch(err => {
						console.log(err);
					});
			},
			zhuangtai(){
				axios
					.post("getStatusList")
					.then(res => {
						console.log(res,"单据状态")
						this.Yu_Jibie = res
//						let arry = []
//						let bumen = {sex:"",value:"全部"}
//				        for(let i = 0 ; i<res.length ; i++ ){
//				        	let Data = { sex: res[i].DocType , value: res[i].DocTypeName }
//				        	arry.push(Data)
//				        }
//				        arry.unshift(bumen)
//				        this.TypeLis_res = arry
//						this.TypeLis = this.TypeLis_res[0].sex
//
//						console.log(this.TypeLis_res,"来源")

					})
					.catch(err => {
						console.log(err);
					});
			},
			laicha() {
				//查询来源列表
				console.log(this.TypeLis)
				if(this.TypeLis == 910124){
					this.getList()
				}else{
				var laiyuan = {
					groupOp: "AND",
					rules: [{
						field: "Voucher_SourceDocType",
						op: "eq",
						data: this.TypeLis
					},
					{
						field: "Voucher_AccountPeriod",
						op: "cn",
						data: this.Period
					}],
					groups: [],
				};
				console.log(laiyuan);
				axios
					.post("VoucherList", {
						page: 1, //当前页数，
						rows: 2000, // 每页多少条
						sort: "Voucher_DocStatus",
						order:"asc",
						filter: JSON.stringify(laiyuan)
					})
					.then(data => {
						console.log(data)
						this.tableData = data.rows;
					})
					.catch(err => {
						console.log(err);
					});
				}	
			},
//			cxDta() {
//				console.log(this.Period+"123")
//				this.getList();
//			},
			PZlowItem() {
				//现金流类型
				axios
					.post("lowItem")
					.then(res => {
						this.lowItemRes = res;
						console.log('现金流类型', this.lowItemRes)
					})
					.catch(err => {
						console.log(err);
					});
			},

			AccountList() {//会计科目列表
				axios
					.post('CXAccountItem')
					.then(res => {
						console.log(res,"会计科目列表")
				        console.log(res.length)
				        let Details = []
				        for(let i = 0 ; i<res.length ; i++ ){
				        	let Data = { value: res[i].AccountItem_Code , label: res[i].AccountItem_Code+res[i].AccountItem_FullName , AssistItemTypeCode:res[i].AssistItemTypeCode}
				        	Details.push(Data)
				        }
				        this.Listres = Details
					})
					.catch(err => {
						console.log(err);
					});
			},
			Fu_GetPeriodList(){
				axios
				.post('Fu_GetPeriodList')
				.then(res => {
					console.log(res,"当前期间");
					this.Period_Date = res;
					for(let i = 0 ; i < res.length ; i++){
						if(res[i].IsCurrent ==1){
							this.Period = res[i].Code
							this.value9 = res[i].Code
							this.value10 = res[i].Code
							this.PeriodRQ1 = res[i].Name
							this.PeriodRQ2 = res[i].Name
							this.riqi1(res[i].Code)
							this.riqi2(res[i].Code)
							this.getList()
						}
					}
				
				})
				.catch(err => {
					console.log(err);
				})
				
			},
			getList() { //主列表
				this.loading2 = true
				var laiyuan = {
					groupOp: "AND",
					rules: [{
						field: "Voucher_SourceDocType",
						op: "eq",
						data: this.TypeLis
					},
					{
						field: "Voucher_AccountPeriod",
						op: "eq",
						data: this.Period
					}],
					groups: [],
				};
				console.log(laiyuan);
				axios
					.post("VoucherList",{
						page: 1, //当前页数，
						rows: 2000, // 每页多少条
						sort: "Voucher_DocStatus",
						order:"asc",
						filter: JSON.stringify(laiyuan)
					})
					.then(data => {
						this.NowList = [{
							fzbumen: "", //辅助核算部门部分
							fzCompany: "", //辅助核算公司部分
							fzdaitan:"",	//辅助核算待摊部分
							fzCustomer: "", //辅助核算客户部分
							fzEmployee: "", //辅助核算员工部分
							fzSupplier: "", //辅助核算供应商部分
							fzProduct:"",	//辅助核算产品部分
							fzyajin:"", //辅助核算押金部分	
							AbsTract: '',
							TteName: '',
							ResBist: '',
							VoucherLine_AssistItem: '',
							VoucherLine_AccountItem: '',
							VoucherLine_DaiMoney: '',
							VoucherLine_JieMoney: '',
							fffffB:[],//部门
							fffffK:[],//客户
							fffffC:[],//产品
							fffffG:[],//公司
							fffffD:[],//待摊
							fffffY:[],//员工
							fffffGYS:[],//供应商
							fffffYJ:[],//押金
						}];
						this.total = data.total;
						this.tableData = data.rows; //客户列表渲染到表格上
						// console.log('总列表', data);
						
						this.loading2 = false
					})
					.catch(err => {
						console.log(err);
					});
			},
			/**
			 * 查询项
			 * */

			refeDat() {
				this.dialogFormVisible = true
//				var filterNane = {
//					groupOp: "OR",
//					rules: [{
//						field: "Voucher_DocNO",
//						op: "cn",
//						data: this.filters.name
//					}, {
//						field: "TotalDaiMoney",
//						op: "cn",
//						data: this.filters.name
//					}, {
//						field: "Voucher_Abstracts",
//						op: "cn",
//						data: this.filters.name
//					}],
//					groups: []
//				};
//				console.log(filterNane);
//				axios
//					.post("VoucherList", {
//						page: 1, //当前页数，
//						rows: 2000, // 每页多少条
//						sort: "Voucher_DocStatus",
//						order:"asc",
//						filter: JSON.stringify(filterNane)
//					})
//					.then(data => {
//						this.tableData = data.rows;
//					})
//					.catch(err => {
//						console.log(err);
//					});
			},
			addItem() {},
			//添加
			add() {			},
			//删除
			handleDelete(index, row) {
				this.$confirm('确认删除?', '提示', {
					type: 'warning'
				}).then(() => {
					this.NowList.splice(index, 1);
					this.fanCresit(); //贷方金额叠加
					this.cesi(); //借方金额叠加
					this.Debitnuber = ''
					this.creditNuber = ''
					this.$message({
						message: "删除成功",
						type: 'success'
					});
				})	
			},
			//编辑
			modify(index, row) {
				var that = this;
				this.$prompt("修改姓名", "编辑", {
						confirmButtonText: "保存",
						cancelButtonText: "取消",
						inputValue: row.name
					})
					.then(function({
						value
					}) {
						//编辑保存
						row.name = value;
					})
					.catch(function() {
						//编辑取消
						that.$message({
							type: "info",
							message: "取消编辑"
						});
					});
			},
			handleAdd: function() {
				this.loading2 = true
				this.AccountList();
				this.PZlowItem();
				this.ewEntityrs();
				this.getmingzi();
				//显示新增界面
				this.BjoddNuber = '';
				this.LowItData = '';//现金流
				this.ChiefAbsTract = '';//主摘要
				this.sunang = '';
				this.sunbng = '';
				this.NowList = [{
					AbsTract: '',
					TteName: '',
					ResBist: '',
					VoucherLine_AssistItem: '',
					VoucherLine_AccountItem: '',
					VoucherLine_DaiMoney: '',
					VoucherLine_JieMoney: '',
				},{
					AbsTract: '',
					TteName: '',
					ResBist: '',
					VoucherLine_AssistItem: '',
					VoucherLine_AccountItem: '',
					VoucherLine_DaiMoney: '',
					VoucherLine_JieMoney: '',
				},{
					AbsTract: '',
					TteName: '',
					ResBist: '',
					VoucherLine_AssistItem: '',
					VoucherLine_AccountItem: '',
					VoucherLine_DaiMoney: '',
					VoucherLine_JieMoney: '',
				}];
				this.SholissAdd = true; //新建页面显示
				this.SholissAdd1 = false; //新建页面显示
				this.Sholist = false; //查询总表隐藏
				this.loading2 = false;
			},
			ToBackoth: function() {
				window.location.reload();
			},
			ToBackoth1: function() {
				window.location.reload();
			},
			changeAAA(e){
				console.log(e,'num');
				if(e===true){
					this.checkedA = true
				}else{
					this.checkedA = false
				}
			},
			changeBBB(e){
				console.log(e,'num');
				if(e===true){
					this.checkedB = true
				}else{
					this.checkedB = false
				}
			},
			changeCCC(e){
				console.log(e,'num');
				if(e===true){
					this.checkedC = true
				}else{
					this.checkedC = false
				}
			},
			dealF(e,cell,cellValue) {
				console.log("1111111",cellValue)
				if(cellValue == 0){
					return ''
				}else{
					return cellValue
				}	   
			},
			dealY(e,cell,cellValue) {
				console.log("1111111",cellValue)
				if(cellValue == 0){
					return ''
				}else{
					return cellValue
				}	   
			},
			update(e) {//导入
						console.log(e.target.files[0],"e")
	            let file = e.target.files[0];
	            let param = new FormData(); //创建form对象
	            param.append('file', file, file.name);//通过append向form对象添加数据
	            param.append('chunk', '0');//添加form表单中其他数据
//	            param.append('key', this.DocNO);//添加DocNO
	            console.log(param.get('file'),"param"); //FormData私有类对象，访问不到，可以通过get判断值是否传进去
	            let config = {
	                headers: { 'Content-Type': 'multipart/form-data' }
	            };  //添加请求头
	            axios
	            	.post('Yu_Import', param, config)
	                .then(response => {
	                	// console.log(response)
	                	if(response.Success){
	                		this.getList()
							this.$message({
								message: response.Message,
								type: 'success'
							});
							// console.log(this.tableData1,'11111')
						}else{
							this.$message({
								message: response.Message,
								type: 'warning'
							});	
						}
	                })
					},
					
				dao2(){
					let alldeilc = [];
					this.allHandle.forEach(function(item, index) {
						alldeilc.push(item.Voucher_DocNO)
					})
					let wangmeilin = {
							groupOp:"AND",
							rules:[
								{
									field:"Voucher_DocNO",
									dataType:"string",
									op:"cn",
									data:this.value11
								},
								{
									field:"Voucher_Abstracts",
									dataType:"string",
									op:"cn",
									data:this.value12
								},
								{
									field:"Voucher_DocStatus",
									dataType:"numeric",
									op:"eq",
									data:this.value13
								},
								{
									field:"Voucher_SourceDocType",
									dataType:"numeric",
									op:"eq",
									data:this.TypeLis
								},
								{
									field:"TotalJieMoney2",
									dataType:"numeric",
									op:"ge",
									data:this.Fu
								},
								{
									field:"TotalJieMoney2",
									dataType:"numeric",
									op:"le",
									data:this.Yu
								},
								{
									field:"Voucher_AccountPeriod",
									dataType:"string",
									op:"ge",
									data:this.value99
								},
								{
									field:"Voucher_AccountPeriod",
									dataType:"string",
									op:"le",
									data:this.value100
								}
							],
							groups:[]
						};
						let fuck =alldeilc.map(item=>{
							return "'"+item+"'"
						})
						let para = {
							filter:wangmeilin,
							strDocNo:fuck.join(',')
						}
						if(para.strDocNo==[]){
							alert('请选择')
						}else{
								axios.post("Yu_ExportData", para).then((res) => {
									console.log(res,`res`);
									// console.log(res.column);
									// console.log(res.data);
									this.exTitle = res.title;
									this.excolumn = res.column;
									this.exdata = res.data;
									console.log(this.excolumn,'2222');
									console.log(this.exdata,'333333');
									this.export2Excel();
								})
						}
					},



// 	        daochu(){
// 	        	let alldeilc = [];
// 				this.allHandle.forEach(function(item, index) {
// 					alldeilc.push(item.Voucher_DocNO)
// 				})
// 				console.log(alldeilc)
				
// 				var str='';
// 				for(var i=0;i<alldeilc.length;i++)
// 				{ 
// 					str+="'"+alldeilc[i]+"',";
// 				}
// 				str=(str.substring(str.length-1)==',')?str.substring(0,str.length-1):str;
// //				str+='"';
// 				console.log(str)
				
// 				let filterNane = {
// 					groupOp: "AND",
// 					rules: [{
// 						field: "Voucher_SourceDocType",
// 						op: "eq",
// 						data: this.TypeLis
// 					},
// 					{
// 						field: "Voucher_AccountPeriod",
// 						op: "eq",
// 						data: this.Period
// 					}],
// 					groups: [],
// 				};
				
// 	        	let wangml = {
// 	        		filter:JSON.stringify(filterNane),
// 	        		strDocNo:str
// 	        	}
// 	        	console.log(wangml)
// 				axios
// 					.post('Yu_ExportData',wangml)
// 					.then(res=>{
// 			                console.log(res)
// //			                this.isdown = "http://192.168.1.169:8098"+res;
// 			                this.isdown = "http://www.zixun020.com/sccw"+res;
// 			                console.log(this.isdown)		                
// 			            })
// 					.catch(err => {
// 			                console.log(err);
// 			            })
// 			},
			// tishi(){
			// 	this.$message({
			// 		message: "下载中",
			// 		type: 'success'
			// 	});
			// },
			export2Excel() {//导出功能
			　　require.ensure([], () => {
			　　　　const { export_json_to_excel } = require('../../../vendor/Export2Excel');
			　　　　const tHeader = this.exTitle;
			　　　　const filterVal = this.excolumn;
			　　　　const list = this.exdata;
							console.log(tHeader,"tHeader")
							console.log(list,"filterVal")
							console.log(list,"list")
			　　　　const data = this.formatJson(filterVal, list);
			　　　　export_json_to_excel(tHeader, data, '凭证列表excel');
			　　})
			},
			formatJson(filterVal, jsonData) {//导出功能
					console.log(jsonData,'jsonData');
					console.log(filterVal,'filterVal');
			　　return jsonData.map(v => filterVal.map(j => v[j]))
			},    
			getmingzi(){
				axios
					.post('getBorrowEmployee')
					.then(res=>{
			                console.log(res,"mingzi")
			                this.mingzi = res[0].Name
			            })
					.catch(err => {
			                console.log(err);
			           })
			},
			changeF(e){
		    	console.log(e)
		    },
			changeY(e){
		    	console.log(e)
		   	},		   	
		   	ProfitQuedingF1(){
		   		if(this.Fu > this.Yu){
		   			this.$message({
								message: "开始金额必须小于或等于结束金额！",
								type: 'warning'
							});
		   		}
		   		else{
		   			this.ProfitQuedingF2()
		   		}
		   	},
		   	ProfitQuedingF(){
//		   		var d1 = new Date(this.value9.replace(/\-/g, "\/"));  
// 				var d2 = new Date(this.value10.replace(/\-/g, "\/"));
// 				if(d1 > d2){
// 					this.$message({
//									message: "开始期间必须小于或等于结束期间！",
//									type: 'warning'
//								});
// 				}else{
// 					this.ProfitQuedingF1()
// 				}
		   		var time1 = Date.parse(new Date(this.value9))
		   		// console.log(time1)
		   		var time2 = Date.parse(new Date(this.value10))
		   		console.log(time2)
		   		if(time1 > 0 ){
		   			if(time2 > 0){
		   					if(time1 > time2){
		   						this.$message({
									message: "开始期间必须小于或等于结束期间！",
									type: 'warning'
								});
		   					}else{
		   						this.ProfitQuedingF1()
		   					}
		   			}else{
		   				this.$message({
								message: "结束期间不能为空！",
								type: 'warning'
							});
		   			}
		   		}else{
		   			this.$message({
								message: "开始期间不能为空！",
								type: 'warning'
							});
		   		}
		   	},
		   	ProfitQuedingF2(){
		   		this.dialogFormVisible = false;
		   		this.loading2 = true;
		   		var wangmeilin = {
		   			groupOp:"AND",
		   			rules:[{
		   				field:"Voucher_DocNO",
		   				dataType:"string",
		   				op:"cn",
		   				data:this.value11
		   				},
		   				{field:"Voucher_Abstracts",
		   				dataType:"string",
		   				op:"cn",
		   				data:this.value12
		   				},
		   				{field:"Voucher_DocStatus",
		   				dataType:"numeric",
		   				op:"eq",
		   				data:this.value13
		   				},
		   				{field:"Voucher_SourceDocType",
		   				dataType:"numeric",
		   				op:"eq",
		   				data:this.TypeLis
		   				},
		   				{field:"TotalJieMoney2",
		   				dataType:"numeric",
		   				op:"ge",
		   				data:this.Fu
		   				},
		   				{field:"TotalJieMoney2",
		   				dataType:"numeric",
		   				op:"le",
		   				data:this.Yu
		   				},
		   				{field:"Voucher_AccountPeriod",
		   				dataType:"string",
		   				op:"ge",
		   				data:this.value99
		   				},
		   				{field:"Voucher_AccountPeriod",
		   				dataType:"string",
		   				op:"le",
		   				data:this.value100
		   				}
		   				],
		   				groups:[]
		   				};
				console.log(wangmeilin);
				axios
					.post("VoucherList",{
						page: 1, //当前页数，
						rows: 2000, // 每页多少条
						sort: "Voucher_DocStatus",
						order:"asc",
//						period:this.Period,
						filter: JSON.stringify(wangmeilin)
					})
					.then(data => {
						this.NowList = [{
							fzbumen: "", //辅助核算部门部分
							fzCompany: "", //辅助核算公司部分
							fzdaitan:"",	//辅助核算待摊部分
							fzCustomer: "", //辅助核算客户部分
							fzEmployee: "", //辅助核算员工部分
							fzSupplier: "", //辅助核算供应商部分
							fzProduct:"",	//辅助核算产品部分
							fzyajin:"", //辅助核算押金部分	
							AbsTract: '',
							TteName: '',
							ResBist: '',
							VoucherLine_AssistItem: '',
							VoucherLine_AccountItem: '',
							VoucherLine_DaiMoney: '',
							VoucherLine_JieMoney: '',
							fffffB:[],//部门
							fffffK:[],//客户
							fffffC:[],//产品
							fffffG:[],//公司
							fffffD:[],//待摊
							fffffY:[],//员工
							fffffGYS:[],//供应商
							fffffYJ:[],//押金
						}];
						this.total = data.total;
						this.tableData = data.rows; //客户列表渲染到表格上
						console.log('总列表', data);
						this.PeriodRQ1 = this.value999
						this.PeriodRQ2 = this.value1000
						this.loading2 = false;
		   			})
		   	},
		   	ProfitChongZhi(){
		   		this.Fu=''
		        this.Yu=''
		        this.value9= ''
		        this.value10= ''
		        this.value11= ''
		        this.value12= ''
		        this.value13= ''
		        this.TypeLis= ''
		   	},
		   	riqi1(e){
		   		console.log(e)
		   		console.log(this.value9)
		   		var shijianchuo1 = Date.parse(new Date(e))
		   		var time1 = new Date(shijianchuo1);
		   		var year = time1.getFullYear()
		   		var month = time1.getMonth()+1
		   		console.log(year)
		   		console.log(month)
		   		this.value99 = year+'-'+month
		   		console.log(this.value99)
		   		this.value999 = year+'年'+month+'月'
		   	},
		   	riqi2(e){
		   		console.log(e)
		   		console.log(this.value10)
		   		var shijianchuo2 = Date.parse(new Date(e))
		   		var time2 = new Date(shijianchuo2);
		   		var year1 = time2.getFullYear()
		   		var month1 = time2.getMonth()+1
		   		console.log(year1)
		   		console.log(month1)
		   		this.value100 = year1+'-'+month1
		   		console.log(this.value100)
		   		this.value1000 = year1+'年'+month1+'月'
		   	},

			
		},
		created() {
			this.Fu_GetPeriodList(); //获取期间列表
			this.dangjuFrom();
			this.zhuangtai();
//			this.dangjuFrom();
//			this.ewEntityrs();
			

			
		},
		watch: {
			'Debitnuber': 'cesi',
			'creditNuber': 'fanCresit',
			'ChiefAbsTract': 'ChiAbT',
		},

		mounted() {
//			this.getList(); //列表数据
		},
		computed:{
			jiefang(){
				let sum = 0;
				this.NowList.forEach(item=>{
					sum+=Number(item.VoucherLine_JieMoney);
				})
				return Math.round(parseFloat(sum) * 100)/100;;
			},
			daifang(){
				let sum = 0;
				this.NowList.forEach(item=>{
					sum+=Number(item.VoucherLine_DaiMoney);
				})
				return Math.round(parseFloat(sum) * 100)/100;;
			},
		}
	};
</script>

<style scoped lang="scss">
	@import "../../../common/css/index.css";
	.toolbar {
		h2 {
			font-weight: 100;
			margin: 0 auto;
		}
	}
	
	h3 {
		/*margin: 10px 0;*/
	}
	
	.EmPennAge {
		h2 {
			font-weight: 100;
			margin: 0 auto;
		}
	}
	
	.HideTable {
		width: 99%;
		margin: 0 auto;
		background-color: #fff;
		border: 1px solid #dfe6ec;
		line-height: 40px;
		font-size: 14px;
		color: #1f2d3d;
	}
	.HideTable th{
		background-color: rgb(245,245,245);
	    text-align: center;
	    overflow: hidden;
	    border-right: 1px solid #ddd;
	    border-bottom: 1px solid #ddd;
	    padding: 0 18px;
	    color: #7e8796;
	    font-weight: normal;
	}
	#th1{
		width: 4%;
	}
	#th2{
		width: 11%;
	}
	#th3{
		width: 25%;
	}
	#th4{
		width: 38%;
	}
	#th5{
		width: 8%;
	}
	#th6{
		width: 8%;
	}
	#th7{
		width: 4%;
	}
	
	.bianjTable {
		width: 99%;
		margin: 0 auto;
		background-color: #fff;
		border: 1px solid #dfe6ec;
		line-height: 40px;
		font-size: 14px;
		color: #1f2d3d;
	}
	
	th {
		text-align: center;
	}
	
	td {
		text-align: center;
	}
	/* .addItem {
    display: block;
}

.el-form-item {
    margin-bottom: 12px;
}

.el-row {
    margin-bottom: 10px;
} */
	
	.add_btn {
		float: left;
		margin: 10px 0;
	}
	
	.el-dialog--small {
		width: 40%;
	}
	
	.el-dialog__body {
		padding-bottom: 0;
	}
	#linzi{
		position: absolute;
    	left: 44%;
    	font-size: 20px;
    	font-weight: bolder;
	}
	#fu{
		height: 66px;
		margin-top: 10px;
		margin-bottom: 27px;
		p{
			text-align: center;
    		line-height: 66px;
			
		}
	}
	.proof-input{
		width:80%;
		border:none;
	}
	.proof-input:focus{
		border:none;
		outline:none;
	}
	#wang{
		border: 1px solid #dfe6ec;
		height: 40px;
		margin-bottom: 27px;
		border-top: none;
		p{
			text-align: center;
    		line-height: 40px;
			
		}
	}
	caption h3{
	  text-align:center;
	  line-height:30px;
	}
	.table-c table {
	  border-right: 1px solid #7B7B7B;
	  border-bottom: 1px solid #7B7B7B;
	}
	
	.table-c table td {
	  border-left: 1px solid #7B7B7B;
	  border-top: 1px solid #7B7B7B;
	}
	.ListTable {
	  width: 100%;
	  clear: both;
	  border-collapse: collapse;
	  border: 1px solid #7B7B7B;
	  text-align: center;
	  table-layout:fixed;
	}
	.ListTable td {
	  border-collapse: collapse;
	  border: 1px solid #7B7B7B;
	  padding: 5px;
	  line-height: 30px;
	}
	
	.ListTable thead td {
	  font-weight: bold;
	  text-align: center;
	}
	.Tabletd {
	  text-align: left;
	  word-break: break-all;
	}
	.tbTitle {
	  width: 13%;
	  font-weight: bold;
	}
	.wml{
		color: #fff;
	    background-color: #20a0ff;
	    border-color: #20a0ff;
	    font-size: 14px;
	    box-sizing: border-box;
	    padding: 10px 20px;
	    border-radius: 4px;
	    margin-left: 11px;
	}
</style>